Skip navigation links
A C D F G O 

A

AutoNightActivity - Class in drewhamilton.skylight.android.nightmode
A base Activity that sets the current night mode using an class AutoNightDelegate.
AutoNightActivity() - Constructor for class drewhamilton.skylight.android.nightmode.AutoNightActivity
A base Activity that sets the current night mode using an class AutoNightDelegate.
AutoNightDelegate - Class in drewhamilton.skylight.android.nightmode
A androidx.lifecycle.FullLifecycleObserver that updates the AppCompatDelegate's default night mode. The night is updated when the given LifecycleOwner is started, and again at the next dawn/dusk event if the LifecycleOwner has not stopped.
AutoNightDelegate(appCompatDelegate, skylight) - Constructor for class drewhamilton.skylight.android.nightmode.AutoNightDelegate
A androidx.lifecycle.FullLifecycleObserver that updates the AppCompatDelegate's default night mode. The night is updated when the given LifecycleOwner is started, and again at the next dawn/dusk event if the LifecycleOwner has not stopped.
AutoNightDelegate.Companion - Class in drewhamilton.skylight.android.nightmode
 

C

Companion - Static variable in class drewhamilton.skylight.android.nightmode.AutoNightDelegate
 

D

drewhamilton.skylight.android.nightmode - package drewhamilton.skylight.android.nightmode
 

F

fallback(appCompatDelegate) - Method in class drewhamilton.skylight.android.nightmode.AutoNightDelegate.Companion
Construct an class AutoNightDelegate that updates the night mode at the default times of 7am and 10pm.
fallback(appCompatDelegate) - Static method in class drewhamilton.skylight.android.nightmode.AutoNightDelegate
Construct an class AutoNightDelegate that updates the night mode at the default times of 7am and 10pm.

G

getAutoNightDelegate() - Method in class drewhamilton.skylight.android.nightmode.AutoNightActivity
The delegate used to update this Activity's night mode while the Activity is displayed.

O

ofCoordinates(appCompatDelegate, latitude, longitude) - Method in class drewhamilton.skylight.android.nightmode.AutoNightDelegate.Companion
Construct an class AutoNightDelegate that updates the night mode at dawn and dusk at the given latitude and longitude.
ofCoordinates(appCompatDelegate, latitude, longitude) - Static method in class drewhamilton.skylight.android.nightmode.AutoNightDelegate
Construct an class AutoNightDelegate that updates the night mode at dawn and dusk at the given latitude and longitude.
ofTimes(appCompatDelegate, dawn, dusk) - Method in class drewhamilton.skylight.android.nightmode.AutoNightDelegate.Companion
Construct an class AutoNightDelegate that updates the night mode at the given dawn and dusk times.
ofTimes(appCompatDelegate, dawn, dusk) - Static method in class drewhamilton.skylight.android.nightmode.AutoNightDelegate
Construct an class AutoNightDelegate that updates the night mode at the given dawn and dusk times.
onCreate(savedInstanceState) - Method in class drewhamilton.skylight.android.nightmode.AutoNightActivity
 
onStart(owner) - Method in class drewhamilton.skylight.android.nightmode.AutoNightDelegate
Update the current night mode setting and watch for the next dawn/dusk event when the given owner starts.
onStop(owner) - Method in class drewhamilton.skylight.android.nightmode.AutoNightDelegate
Stop watching for the next dawn/dusk event when the given owner stops.
A C D F G O 
Skip navigation links