UiModeManager.SetApplicationNightMode(Int32) Method

Definition

Sets and persist the night mode for this application.

[Android.Runtime.Register("setApplicationNightMode", "(I)V", "GetSetApplicationNightMode_IHandler", ApiSince=31)]
public virtual void SetApplicationNightMode (int mode);
[<Android.Runtime.Register("setApplicationNightMode", "(I)V", "GetSetApplicationNightMode_IHandler", ApiSince=31)>]
abstract member SetApplicationNightMode : int -> unit
override this.SetApplicationNightMode : int -> unit

Parameters

mode
Int32

the night mode to set

Attributes

Remarks

Java documentation for android.app.UiModeManager.setApplicationNightMode(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