WindowInsets.PrivacyIndicatorBounds Property

Definition

Returns the Rect of the maximum bounds of the system privacy indicator, for the current orientation, in relative coordinates, or null if the bounds have not been loaded yet.

public Android.Graphics.Rect? PrivacyIndicatorBounds { [Android.Runtime.Register("getPrivacyIndicatorBounds", "()Landroid/graphics/Rect;", "", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getPrivacyIndicatorBounds", "()Landroid/graphics/Rect;", "", ApiSince=31)>]
member this.PrivacyIndicatorBounds : Android.Graphics.Rect

Property Value

A rectangle representing the maximum bounds of the indicator

Attributes

Remarks

Returns the Rect of the maximum bounds of the system privacy indicator, for the current orientation, in relative coordinates, or null if the bounds have not been loaded yet.

The privacy indicator bounds are determined by SystemUI, and subsequently loaded once the StatusBar window has been created and attached. The bounds for all rotations are calculated and loaded at once, and this value is only expected to ever change on display or font scale changes. As long as there is a StatusBar window, this value should not be expected to be null.

The privacy indicator shows over apps when an app uses the microphone or camera permissions, while an app is in immersive mode.

Java documentation for android.view.WindowInsets.getPrivacyIndicatorBounds().

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