Class: UIManager

Members

(static, constant) UiEventType :string

UI event types.
Properties:
Name Value Type Description
UI_RESUMED uiResumed string
UI_PAUSED uiPaused string
UI_VOLUME_MUTED uiVolumeMuted string
UI_VOLUME_CHANGED uiVolumeChanged string
UI_LOOP_CHANGED uiLoopChanged string
UI_PLAYBACK_RATE_CHANGED uiPlaybackRateChanged string
UI_PIP_CHANGED uiPipChanged string
UI_FULLSCREEN_CHANGE uiFullscreenChange string

Methods

addEventListener(type, listener)

Add an event listener to this object.
Parameters:
Name Type Description
type string The event type to listen for.
listener EventListener | function The callback or listener object to invoke.

listenToAllEvents(listener)

Add an event listener to this object that is invoked for all events types the object fires.
Parameters:
Name Type Description
listener EventListener | function The callback or listener object to invoke.

removeEventListener(type, listener)

Remove an event listener from this object.
Parameters:
Name Type Description
type string The event type for which you wish to remove a listener.
listener EventListener | function The callback or listener object to remove.