AI-generated Key Takeaways
-
The
StandbyChangedEvent
is dispatched bycast.framework.CastReceiverContext
when the TV's standby state changes. -
Applications should check the
isStandby
property to determine the current standby state. -
The
isStandby
property istrue
when the TV is in standby andfalse
otherwise, including when the state is unknown. -
The
cast.framework.CastReceiverContext#getStandbyState
method 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