as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

DisplayController

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 to receive callbacks when primary display is added (connected) or removed (disconnected). It returns a object, which is used to unsubscribe the listener from receiving the events through .

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 updated: Jul 22, 2026