Class: CustomStateEvent

  • The CustomStateEvent class provides data for custom state events within the Cast framework.

  • It includes a state property, a non-null object representing the sent media status.

  • Developers can use the CustomStateEvent constructor with the state parameter to create instances of this event.

Constructor

CustomStateEvent

new CustomStateEvent(state)

Parameter

state

Object

Value must not be null.

Property

state

constant

non-null Object

The media status that was sent.