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
Native
Skip to main content
DisplayController specific operations are done through this class abstraction.

Constructors

new DisplayController()

new DisplayController(): DisplayController

Returns

DisplayController

Methods

addListener()

static addListener(listener: IDisplayControllerListener): ISubscription
Adds display controller listener object IDisplayControllerListener to receive callbacks when primary display is added (connected) or removed (disconnected). It returns a ISubscription object, which is used to unsubscribe the listener from receiving the events through ISubscription.unsubscribe.

Parameters

listener
IDisplayControllerListener IDisplayControllerListener object to listen for display controller events. ISubscription object corresponding to the listener

Returns

ISubscription

isPrimaryDisplayConnected()

static isPrimaryDisplayConnected(): boolean
Check if primary display is connected to the device and ready to use. return true if display is connected, false otherwise.

Returns

boolean
Last modified on August 25, 2026