LocalizationSettingsService
interface LocalizationSettingsService
Localization settings service to interact with localization related settings. Clients can, for instance, change the system locale, or get the activeTemperatureDisplayUnit to know if the temperature values should be displayed using degrees Celsius or Fahrenheit.
Properties
Functions
Link copied to clipboard
abstract suspend fun setActiveDistanceMeasurementSystem(distanceMeasurementSystem: DistanceMeasurementSystem)
Sets the active distance measurement system.
Link copied to clipboard
Sets the active temperature display unit.
Link copied to clipboard
Sets Settings.System.TIME_12_24 to the time format setting determined by the timeFormat parameter. This API requires the Manifest.permission.WRITE_SETTINGS permission.
Link copied to clipboard
Sets locale as the Android System Locale. This can be used to switch language on the Android system level. This API requires the Manifest.permission.CHANGE_CONFIGURATION permission.