AI-generated Key Takeaways
-
The
StandbyChangedEventis dispatched bycast.framework.CastReceiverContextwhen the TV's standby state changes. -
Applications should check the
isStandbyproperty to determine the current standby state. -
The
isStandbyproperty istruewhen the TV is in standby andfalseotherwise, including when the state is unknown. -
The
cast.framework.CastReceiverContext#getStandbyStatemethod can be called to get the actual standby status, including if it's unknown.
cast.framework.system. StandbyChangedEvent
An event dispatched by cast.framework.CastReceiverContext when the TV
enters or leaves the standby state, so the application should always verify
the isStandby property. To know if the actual status is unknown, the
application can call the
cast.framework.CastReceiverContext#getStandbyState method.
Constructor
StandbyChangedEvent
new StandbyChangedEvent(isStandby)
Parameter |
|
|---|---|
|
isStandby |
boolean This is |
- 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