QueriedCoWatchingState

@PublicApi
interface QueriedCoWatchingState

Known direct subclasses
CoWatchingState

Represents the state of the co-watching activity.


Represents the state of the co-watching activity for 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 .

Summary

Public functions

Duration!

Returns the current position of the media playout.

java-static QueriedCoWatchingState!
of(mediaPlayoutPosition: Duration!)

Creates a new QueriedCoWatchingState with the given playout position.

Public functions

mediaPlayoutPosition

fun mediaPlayoutPosition(): Duration!

Returns the current position of the media playout.

of

java-static fun of(mediaPlayoutPosition: Duration!): QueriedCoWatchingState!

Creates a new QueriedCoWatchingState with the given playout position.