Share via


Window.NavigationBarContrastEnforced Property

Definition

Returns whether the system is ensuring that the navigation bar has enough contrast when a fully transparent background is requested. -or- Sets whether the system should ensure that the navigation bar has enough contrast when a fully transparent background is requested.

public virtual bool NavigationBarContrastEnforced { [Android.Runtime.Register("isNavigationBarContrastEnforced", "()Z", "GetIsNavigationBarContrastEnforcedHandler", ApiSince=29)] get; [Android.Runtime.Register("setNavigationBarContrastEnforced", "(Z)V", "GetSetNavigationBarContrastEnforced_ZHandler", ApiSince=29)] set; }
[<get: Android.Runtime.Register("isNavigationBarContrastEnforced", "()Z", "GetIsNavigationBarContrastEnforcedHandler", ApiSince=29)>]
[<set: Android.Runtime.Register("setNavigationBarContrastEnforced", "(Z)V", "GetSetNavigationBarContrastEnforced_ZHandler", ApiSince=29)>]
member this.NavigationBarContrastEnforced : bool with get, set

Property Value

true, if the system is ensuring contrast, false otherwise.

Attributes

Remarks

Property getter documentation:

Returns whether the system is ensuring that the navigation bar has enough contrast when a fully transparent background is requested.

When the navigation bar color has a non-zero alpha value, the value of this property has no effect.

Java documentation for android.view.Window.isNavigationBarContrastEnforced().

Property setter documentation:

Sets whether the system should ensure that the navigation bar has enough contrast when a fully transparent background is requested.

If set to this value, the system will determine whether a scrim is necessary to ensure that the navigation bar has enough contrast with the contents of this app, and set an appropriate effective bar background color accordingly.

When the navigation bar color has a non-zero alpha value, the value of this property has no effect.

Java documentation for android.view.Window.setNavigationBarContrastEnforced(boolean).

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