Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
DisplayManager provides APIs to change the display configuration/settings. Clients require the application privilege “com.amazon.graphics.privilege.display.manager” to invoke APIs of this class.

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

DisplayManagerListenerSubscription

commitStates()

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.
Last modified on October 2, 2025