WeatherFormatter

Interface used to format weather strings.

Functions

Link copied to clipboard
abstract fun formatFeelsLike(temp: Int, temperatureUnit: TemperatureUnit, locale: Locale): String

Format feels-like temperature.

Link copied to clipboard
abstract fun formatPrecipitationChance(chance: Int, locale: Locale): String?

Format precipitation chance. Return null if you don't want precipitation chance to be displayed.

Link copied to clipboard
abstract fun formatTemperatureHigh(high: Int, locale: Locale): String

Format high temperature.

Link copied to clipboard
abstract fun formatTemperatureLow(low: Int, locale: Locale): String

Format low temperature.

Link copied to clipboard
abstract fun formatTemperatureNow(now: Int, temperatureUnit: TemperatureUnit, locale: Locale): String

Format current temperature, short version, full version.

Link copied to clipboard
abstract fun formatTemperatureNowShort(now: Int, locale: Locale): String

Format current temperature, short version.