Condividi tramite


IWindowInsetsController.SetSystemBarsAppearance(Int32, Int32) Method

Definition

Controls the appearance of system bars.

[Android.Runtime.Register("setSystemBarsAppearance", "(II)V", "GetSetSystemBarsAppearance_IIHandler:Android.Views.IWindowInsetsControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)]
public void SetSystemBarsAppearance (int appearance, int mask);
[<Android.Runtime.Register("setSystemBarsAppearance", "(II)V", "GetSetSystemBarsAppearance_IIHandler:Android.Views.IWindowInsetsControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)>]
abstract member SetSystemBarsAppearance : int * int -> unit

Parameters

appearance
Int32

Bitmask of appearance flags.

mask
Int32

Specifies which flags of appearance should be changed.

Attributes

Remarks

Controls the appearance of system bars.

For example, the following statement adds #APPEARANCE_LIGHT_STATUS_BARS:

setSystemBarsAppearance(APPEARANCE_LIGHT_STATUS_BARS, APPEARANCE_LIGHT_STATUS_BARS)

And the following statement clears it:

setSystemBarsAppearance(0, APPEARANCE_LIGHT_STATUS_BARS)

Java documentation for android.view.WindowInsetsController.setSystemBarsAppearance(int, int).

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