CoWatchingState.PlaybackState

@PublicApi
enum CoWatchingState.PlaybackState


Represents the current state of media playback.

Summary

Enum Values

BUFFERING

The media is currently buffering and will begin playback when ready.

ENDED

The media player has reached the end of the current media.

PAUSE

The media is paused.

PLAY

The media is playing.

Public functions

java-static CoWatchingState.PlaybackState!
valueOf(name: String!)

Returns the enum constant of this type with the specified name.

java-static Array<CoWatchingState.PlaybackState!>!

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

BUFFERING

@PublicApi
val CoWatchingState.PlaybackState.BUFFERINGCoWatchingState.PlaybackState

The media is currently buffering and will begin playback when ready.

ENDED

@PublicApi
val CoWatchingState.PlaybackState.ENDEDCoWatchingState.PlaybackState

The media player has reached the end of the current media.

Public functions

valueOf

java-static fun valueOf(name: String!): CoWatchingState.PlaybackState!

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Returns
CoWatchingState.PlaybackState!

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

java-static fun values(): Array<CoWatchingState.PlaybackState!>!

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
Array<CoWatchingState.PlaybackState!>!

an array containing the constants of this enum type, in the order they're declared