as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
Listener interface for DisplayController events. NOTE: Currently only primary display hot plug events are supported in this turbomodule.

Properties

onAddDisplay

onAddDisplay: (id: Int32) => void
Triggered when a new display is added.

Parameters

id
Int32 An unique identifier of the display being added.

onRemoveDisplay

onRemoveDisplay: (id: Int32) => void
Triggered when a display is removed. When a display is removed then the “Display” object should not be used to do any operation rather it should wait for onAddDisplay() event and then use the “Display” object, otherwise the “Display” object behaviour is undefined.

Parameters

id
Int32 An unique identifier for the primary display being removed.
最后修改于 2026年8月25日