QueriedCoWatchingState

public interface QueriedCoWatchingState
Known Indirect Subclasses

Represents the state of the co-watching activity for CoWatchingHandler.onStateQuery().

This is a subset CoWatchingState. The query mechanism is only used to ensure that media playback is proceeding as expected; to actually set the state, call the methods on CoWatchingClient.

Public Method Summary

abstract Duration
mediaPlayoutPosition()
Returns the current position of the media playout.
static QueriedCoWatchingState
of(Duration mediaPlayoutPosition)
Creates a new QueriedCoWatchingState with the given playout position.

Public Methods

public abstract Duration mediaPlayoutPosition ()

Returns the current position of the media playout.

public static QueriedCoWatchingState of (Duration mediaPlayoutPosition)

Creates a new QueriedCoWatchingState with the given playout position.