Skip to main content

Class: Event

  • cast.framework.system.Event is a class representing events dispatched by cast.framework.CastReceiverContext containing system information.

  • The constructor for Event takes a type parameter, which must be a non-null cast.framework.system.EventType, and an optional data parameter.

  • The Event class has a non-null type property which indicates the event type.

cast.framework.system.Event

class static

An event dispatched by cast.framework.CastReceiverContext which contains system information.

Constructor

Event

new Event(type, data)

Parameter

type

cast.framework.system.EventType

Event Type.

Value must not be null.

data

(nullable any type or undefined)

Event data (deprecated).

Property

type

non-null cast.framework.system.EventType

The 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 によって変換されたページ (->オリジナル) /