as

Settings
Sign out
Notifications
Alexa
Amazonアプリストア
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): 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.

Returns

ISubscription

ISubscription object corresponding to the listener

See

DisplayControllerListenerSubscription


isPrimaryDisplayConnected()

static isPrimaryDisplayConnected(): boolean

Check if primary display is connected to the device and ready to use.

Returns

boolean

return true if display is connected, false otherwise.


Last updated: Oct 02, 2025