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.

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.