Home Reference Source
import DisplayModeTracker from 'potassium-es/src/DisplayModeTracker.js'
public class | source

DisplayModeTracker

Extends:

EventHandler → DisplayModeTracker

DisplayModeTracker keeps track of which display modes (flat, portal, and immersive) are possible

Static Member Summary

Static Public Members
public static get

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get
public get
public get

Method Summary

Public Methods
public

setModes(flatCapable: *, portalCapable: *, immersiveCapable: *)

Inherited Summary

From class EventHandler
public get

listeners: EventListener[]: *

public

addListener(callback: function(eventName: string, eventSource: EventHandler), eventName: Object | Symbol, once: bool)

public
public

removeListener(callback: *, eventName: undefined)

public

trigger(eventName: *, params: ...*)

Send an event to listeners

Static Public Members

public static get Singleton: * source

Public Constructors

public constructor() source

Public Members

public get flatCapable: * source

public get immersiveCapable: * source

public get portalCapable: * source

Public Methods

public setModes(flatCapable: *, portalCapable: *, immersiveCapable: *) source

Params:

NameTypeAttributeDescription
flatCapable *
portalCapable *
immersiveCapable *