DisplayManager.EventTypeDisplayChanged Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Event type for when a display is changed.
[Android.Runtime.Register("EVENT_TYPE_DISPLAY_CHANGED", ApiSince=36)]
public const long EventTypeDisplayChanged = 4;
[<Android.Runtime.Register("EVENT_TYPE_DISPLAY_CHANGED", ApiSince=36)>]
val mutable EventTypeDisplayChanged : int64
Field Value
Value = 4- Attributes
Remarks
Event type for when a display is changed. DisplayListener#onDisplayChanged
callback is triggered whenever the properties of a android.view.Display
, such as size, state, density are modified.
This event is not triggered for refresh rate changes as they can change very often. To monitor refresh rate changes, subscribe to EVENT_TYPE_DISPLAY_REFRESH_RATE
.
Java documentation for android.hardware.display.DisplayManager.EVENT_TYPE_DISPLAY_CHANGED
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.