public interface IDisplayEventCallback
You can invoke the callbacks provided in this class to report an event when a display device is connected, removed, or the information about the display device changes.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onDisplayChanged(int displayId) |
Called when the display device information such as the display size or density changes.
|
void |
onDisplayConnected(int displayId) |
Called when a display device is connected.
|
void |
onDisplayDisconnected(int displayId) |
Called when a display device is disconnected.
|
void onDisplayConnected(int displayId)
displayId - Indicate the display device ID.void onDisplayDisconnected(int displayId)
displayId - Indicate the display device ID.void onDisplayChanged(int displayId)
displayId - Indicate the display device ID.