DisplayController
DisplayController specific operations are done through this class abstraction.
Constructors
new DisplayController()
new DisplayController(): DisplayController
Returns
Methods
addListener()
staticaddListener(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 object to listen for display controller events. ISubscription object corresponding to the listener
Returns
isPrimaryDisplayConnected()
staticisPrimaryDisplayConnected():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

