The Developer Preview for Android 11 is now available; test it out and share your feedback.

ConfigurationCompat

class ConfigurationCompat
kotlin.Any
   ↳ androidx.core.os.ConfigurationCompat

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

Summary

Public methods

static LocaleListCompat
getLocales(@NonNull configuration: Configuration)

Get the LocaleListCompat from the Configuration.

Public methods

getLocales

@NonNull static fun getLocales(@NonNull configuration: Configuration): LocaleListCompat

Get the LocaleListCompat from the Configuration.

Return
LocaleListCompat The locale list.