public static class AutoNightDelegate.Companion
| Modifier and Type | Method and Description |
|---|---|
AutoNightDelegate |
fallback(androidx.appcompat.app.AppCompatDelegate appCompatDelegate)
Construct an
class AutoNightDelegate that updates the night mode at the default times of 7am and 10pm. |
AutoNightDelegate |
ofCoordinates(androidx.appcompat.app.AppCompatDelegate appCompatDelegate,
double latitude,
double longitude)
Construct an
class AutoNightDelegate that updates the night mode at dawn and dusk at the given latitude
and longitude. |
AutoNightDelegate |
ofTimes(androidx.appcompat.app.AppCompatDelegate appCompatDelegate,
org.threeten.bp.OffsetTime dawn,
org.threeten.bp.OffsetTime dusk)
|
@JvmStatic @NotNull public AutoNightDelegate fallback(@NotNull androidx.appcompat.app.AppCompatDelegate appCompatDelegate)
Construct an class AutoNightDelegate that updates the night mode at the default times of 7am and 10pm.
class AutoNightDelegate@JvmStatic @NotNull public AutoNightDelegate ofTimes(@NotNull androidx.appcompat.app.AppCompatDelegate appCompatDelegate, @NotNull org.threeten.bp.OffsetTime dawn, @NotNull org.threeten.bp.OffsetTime dusk)
Construct an class AutoNightDelegate that updates the night mode at the given dawn and dusk times.
class AutoNightDelegate,
dawn,
dusk@JvmStatic @NotNull public AutoNightDelegate ofCoordinates(@NotNull androidx.appcompat.app.AppCompatDelegate appCompatDelegate, double latitude, double longitude)
Construct an class AutoNightDelegate that updates the night mode at dawn and dusk at the given latitude
and longitude.
class AutoNightDelegate,
latitude,
longitude