IWindowManager.RequestEngagementControlState Method
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.
Requests an engagement control state.
[Android.Runtime.Register("requestEngagementControlState", "(I)V", "GetRequestEngagementControlState_IHandler:Android.Views.IWindowManager, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)]
public virtual void RequestEngagementControlState(Android.Views.WindowManagerEngagementControlState engagementControlFlags);
[<Android.Runtime.Register("requestEngagementControlState", "(I)V", "GetRequestEngagementControlState_IHandler:Android.Views.IWindowManager, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)>]
abstract member RequestEngagementControlState : Android.Views.WindowManagerEngagementControlState -> unit
override this.RequestEngagementControlState : Android.Views.WindowManagerEngagementControlState -> unit
Parameters
- engagementControlFlags
- WindowManagerEngagementControlState
A bitmask of requested engagement states. Pass 0 to clear all requests. Value is either 0 or ENGAGEMENT_CONTROL_FLAG_SUSTAIN_VISUALS
- Attributes
Remarks
Requests an engagement control state. Allows applications to request physical display state behaviors, such as keeping the screen on for XR glasses. Note: This is a request. The system determines if the requested state will be respected. Applications should use `registerDisplayEngagementModeCallback` to observe the actual applied state.
Android reference for android.view.WindowManager.requestEngagementControlState.
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.