Lenguaje

UiModeManager.NightMode Propiedad

Definición

Devuelve el modo nocturno configurado actualmente. -o bien- Establece el modo nocturno de todo el 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

Valor de propiedad

el modo nocturno actual o -1 en caso de error

Atributos

Comentarios

Devuelve el modo nocturno configurado actualmente. Puede ser uno de los siguientes: MODE_NIGHT_NO MODE_NIGHT_YES MODE_NIGHT_AUTO MODE_NIGHT_CUSTOM -1 en caso de error

Consulte también:

Referencia de Android para android.app.UiModeManager.getNightMode.

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a