CoWatchingState.PlaybackState

@PublicApi
public 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 methods

static CoWatchingState.PlaybackState

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

static CoWatchingState.PlaybackState[]

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

Enum Values

BUFFERING

@PublicApi
CoWatchingState.PlaybackState CoWatchingState.PlaybackState.BUFFERING

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

ENDED

@PublicApi
CoWatchingState.PlaybackState CoWatchingState.PlaybackState.ENDED

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

Public methods

valueOf

public static CoWatchingState.PlaybackState valueOf(String name)

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

public static CoWatchingState.PlaybackState[] values()

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
CoWatchingState.PlaybackState[]

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