Constructors
new DisplayManager()
new DisplayManager():DisplayManager
Returns
DisplayManager
Methods
addListener()
static addListener(listener): ISubscription
Adds display manager listener object IDisplayManagerListener to receive
callbacks when display manager properties change.
It returns a ISubscription object, which is used to unsubscribe the listener
from receiving events through ().
Parameters
listener
IDisplayManagerListener
IDisplayManagerListener interface
Returns
ISubscription
ISubscription object related to this listener
See
DisplayManagerListenerSubscriptioncommitStates()
static commitStates(): number
Request the display manager to commit all pending states.
Please note, this function has to be called for any changes to be applied.
This API will only update the pending states and it will actually try to apply all the pending
states change requests made since last commitStates() call.
The benefit of having a single commit call is that fact that clients can apply multiple dependent states
together on display hardware.
Client can know the result of the commit request through IDisplayManagerListener.
This API requires the client to have “com.amazon.graphics.privilege.display.manager” application privilege.
Returns
number
commit id which can be used to track the commit status.

