Lingua

UiModeManager.NightMode Proprietà

Definizione

Restituisce la modalità notte attualmente configurata. -oppure- Imposta la modalità notturna a livello di sistema.

public virtual Android.App.UiNightMode NightMode { [Android.Runtime.Register("getNightMode", "()I", "GetGetNightModeHandler")] get; [Android.Runtime.Register("setNightMode", "(I)V", "GetSetNightMode_IHandler")] set; }
[<get: Android.Runtime.Register("getNightMode", "()I", "GetGetNightModeHandler")>]
[<set: Android.Runtime.Register("setNightMode", "(I)V", "GetSetNightMode_IHandler")>]
member this.NightMode : Android.App.UiNightMode with get, set

Valore della proprietà

la modalità notte corrente o -1 in caso di errore

Attributi

Commenti

Restituisce la modalità notte attualmente configurata. Può essere uno dei seguenti: MODE_NIGHT_NO MODE_NIGHT_YES MODE_NIGHT_AUTO MODE_NIGHT_CUSTOM -1 in caso di errore

Vedere anche:

Informazioni di riferimento su Android per android.app.UiModeManager.getNightMode.

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a