Package-level declarations

This package contains tools for customising the region-specific elements of the digital cockpit environment such as language.

setSystemLocale is an API which allows for changing the Android system's language, reflected in all apps present on the system.

Types

Link copied to clipboard

Functions

Link copied to clipboard

Retrieves the current clock time format value at Settings.System.TIME_12_24 and returns the corresponding TimeFormat enum value.

Link copied to clipboard

Extends Context to restart the Activity.

Link copied to clipboard
fun setClockTimeFormat(context: Context, timeValue: TimeFormat)

Sets Settings.System.TIME_12_24 to the time format setting determined by the timeValue parameter. This API Requires android.permission.WRITE_PERMISSIONS.

Link copied to clipboard
fun setSystemLocale(locale: Locale)

Sets locale as the Android System Locale. This can be used to switch language on the Android system level. The android.permission.CHANGE_CONFIGURATION permission is required in order to use this API.