Share via


DisplayManager.EventTypeDisplayChanged Field

Definition

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.

Applies to