Class: StandbyChangedEvent

  • StandbyChangedEvent is dispatched when a TV's standby state changes (entering or leaving standby).

  • Apps should always check the isStandby property to determine the TV's current standby status.

  • cast.framework.CastReceiverContext#getStandbyState can be used to check if the TV's standby status is unknown.

  • The StandbyChangedEvent constructor takes an isStandby parameter indicating the TV's standby state.

  • StandbyChangedEvent inherits from cast.framework.system.Event and includes an isStandby property reflecting the TV's standby status.

Constructor

StandbyChangedEvent

new StandbyChangedEvent(isStandby)

Parameter

isStandby

boolean

This is true when the TV is in standby, or false when either the TV is not in standby or if its state is unknown.

Extends
cast.framework.system.Event

Properties

isStandby

boolean

This is true when the TV is in standby and false if it isn't.

type

non-null cast.framework.system.EventType

The event type.

Inherited from
cast.framework.system.Event#type