CastPlayer.Builder
class CastPlayer.Builder
Builder for CastPlayer.
Summary
Public functions |
|
|---|---|
CastPlayer! |
build()Creates and returns the new |
CastPlayer.Builder! |
@CanIgnoreReturnValueSets the |
CastPlayer.Builder! |
@CanIgnoreReturnValueSets the |
CastPlayer.Builder! |
@CanIgnoreReturnValueSets the |
Public constructors
Public functions
build
fun build(): CastPlayer!
Creates and returns the new CastPlayerImpl instance.
| Throws | |
|---|---|
java.lang.IllegalStateException |
If this method has already been called on this instance. |
setLocalPlayer
@CanIgnoreReturnValue
fun setLocalPlayer(localPlayer: Player!): CastPlayer.Builder!
Sets the Player to use for local playback.
| Returns | |
|---|---|
CastPlayer.Builder! |
This builder. |
| Throws | |
|---|---|
java.lang.IllegalStateException |
If |
setRemotePlayer
@CanIgnoreReturnValue
fun setRemotePlayer(remotePlayer: RemoteCastPlayer!): CastPlayer.Builder!
Sets the RemoteCastPlayer to use for remote playback.
| Parameters | |
|---|---|
remotePlayer: RemoteCastPlayer! |
| Returns | |
|---|---|
CastPlayer.Builder! |
This builder. |
| Throws | |
|---|---|
java.lang.IllegalStateException |
If |
setTransferCallback
@CanIgnoreReturnValue
fun setTransferCallback(transferCallback: CastPlayer.TransferCallback!): CastPlayer.Builder!
Sets the TransferCallback to call when the active player changes.
| Parameters | |
|---|---|
transferCallback: CastPlayer.TransferCallback! |
| Returns | |
|---|---|
CastPlayer.Builder! |
This builder. |
| Throws | |
|---|---|
java.lang.IllegalStateException |
If |