ConfigurationCompat

Added in 1.1.0

class ConfigurationCompat


Helper class which allows access to properties of Configuration in a backward compatible fashion.

Summary

Public functions

java-static LocaleListCompat
getLocales(configuration: Configuration)

Get the LocaleListCompat from the Configuration.

java-static Unit
setLocales(configuration: Configuration, locales: LocaleListCompat)

Set the Locale into Configuration.

Public functions

getLocales

Added in 1.1.0
java-static fun getLocales(configuration: Configuration): LocaleListCompat

Get the LocaleListCompat from the Configuration.

Returns
LocaleListCompat

The locale list.

setLocales

Added in 1.11.0
java-static fun setLocales(configuration: Configuration, locales: LocaleListCompat): Unit

Set the Locale into Configuration. This API is no-op on API 16 and earlier.