Ein Ereignis, das von cast.framework.CastReceiverContext ausgelöst wird, wenn der Fernseher in den Standby-Status wechselt oder ihn verlässt. Daher sollte die Anwendung immer das Attribut isStandby prüfen. Um festzustellen, ob der tatsächliche Status unbekannt ist, kann die Anwendung die Methode cast.framework.CastReceiverContext#getStandbyState aufrufen.
Konstruktor
StandbyChangedEvent
neu
StandbyChangedEvent(isStandby)
Parameter
isStandby
boolean
Dies ist true, wenn sich der Fernseher im Stand-by-Modus befindet, oder false, wenn sich der Fernseher entweder nicht im Stand-by-Modus befindet oder sein Status unbekannt ist.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2023-12-13 (UTC)."],[[["`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."]]],["The `StandbyChangedEvent` is dispatched by `CastReceiverContext` when a TV enters or exits standby mode. Applications should check the `isStandby` property to determine the TV's state. The `isStandby` property is `true` if the TV is in standby and `false` otherwise. The actual standby state can also be checked by calling `getStandbyState`. The `StandbyChangedEvent` also has a `type` property. This class inherits from `cast.framework.system.Event`.\n"]]