@Reusable
public class CalculatorSkylight
Adapted from AndroidX's (internal) TwilightCalculator class.
Values returned are a bit "fuzzy"; that is, you can get different SkylightInfo for the same location on the same day depending on the exact input time. This difference has been noted to range up to almost 1 minute, but has not been tested extensively. Handle the returned calculation accordingly
| Modifier and Type | Field and Description |
|---|---|
static drewhamilton.skylight.calculator.CalculatorSkylight.Companion |
Companion
Deprecated.
|
| Constructor and Description |
|---|
CalculatorSkylight()
Adapted from AndroidX's (internal) TwilightCalculator class.
|
| Modifier and Type | Method and Description |
|---|---|
drewhamilton.skylight.SkylightDay |
getSkylightDay(drewhamilton.skylight.Coordinates coordinates,
java.util.Date date)
Calculates the SkylightDay based on the given coordinates and date
|
public static drewhamilton.skylight.calculator.CalculatorSkylight.Companion Companion
@Inject public CalculatorSkylight()
Adapted from AndroidX's (internal) TwilightCalculator class.
Values returned are a bit "fuzzy"; that is, you can get different SkylightInfo for the same location on the same day depending on the exact input time. This difference has been noted to range up to almost 1 minute, but has not been tested extensively. Handle the returned calculation accordingly
@NotNull
public drewhamilton.skylight.SkylightDay getSkylightDay(@NotNull
drewhamilton.skylight.Coordinates coordinates,
@NotNull
java.util.Date date)
Calculates the SkylightDay based on the given coordinates and date
coordinates - locations for which to calculate info.date - date for which to calculate info.