Skip to main content

Class: VisibilityChangedEvent

  • VisibilityChangedEvent is dispatched by cast.framework.CastReceiverContext when the application's visibility changes due to factors like HDMI input changes or the TV being turned off.

  • The constructor VisibilityChangedEvent(isVisible) takes a boolean parameter isVisible indicating whether the Cast device is the active input.

  • The isVisible property is a boolean that is true when the Cast device is the active input and false otherwise.

  • The type property, inherited from cast.framework.system.Event, indicates the event type.

cast.framework.system.VisibilityChangedEvent

class static

An event dispatched by cast.framework.CastReceiverContext when the visibility of the application changes - for instance, when the HDMI input changes, or the TV is turned off.

Constructor

VisibilityChangedEvent

new VisibilityChangedEvent(isVisible)

Parameter

isVisible

boolean

true when the Cast device is the active input, false when not.

Extends
cast.framework.system.Event

Properties

isVisible

boolean

true when the Cast device is the active input, false when not.

type

non-null cast.framework.system.EventType

The event type.

Inherited from
cast.framework.system.Event#type

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年09月18日 UTC.

AltStyle によって変換されたページ (->オリジナル) /