All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.vanniktech.ui.theming.night.NightModeBehavior.kt Maven / Gradle / Ivy

There is a newer version: 0.10.0
Show newest version
package com.vanniktech.ui.theming.night

enum class NightModeBehavior(
  /** This is the Android constant that we can use to set the night mode. */
  val value: Int,
) {
  NO(value = 1),
  YES(value = 2),
  FOLLOW_SYSTEM(-1),
  ;

  companion object {
    fun list() = values().toList()
    fun fromOrNull(value: Int?) = values().firstOrNull { it.value == value }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy