-
public class LocaleMatcher
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classLocaleMatcher.LocaleMatchResult
-
Method Summary
Modifier and Type Method Description static StringBestAvailableLocale(Array<String> availableLocales, String locale)static LocaleMatcher.LocaleMatchResultlookupMatch(Array<String> requestedLocales, Array<String> availableLocales)static Array<String>getAvailableLocales()static LocaleMatcher.LocaleMatchResultlookupMatch(Array<String> requestedLocales)static Array<String>lookupSupportedLocales(Array<String> requestedLocales)static ULocalebestFitBestAvailableLocale(ILocaleObject<out Object> requestedLocaleObject)static LocaleMatcher.LocaleMatchResultbestFitMatch(Array<String> requestedLocales)static Array<String>bestFitSupportedLocales(Array<String> requestedLocales)-
-
Method Detail
-
BestAvailableLocale
static String BestAvailableLocale(Array<String> availableLocales, String locale)
-
lookupMatch
static LocaleMatcher.LocaleMatchResult lookupMatch(Array<String> requestedLocales, Array<String> availableLocales)
-
getAvailableLocales
static Array<String> getAvailableLocales()
-
lookupMatch
static LocaleMatcher.LocaleMatchResult lookupMatch(Array<String> requestedLocales)
-
lookupSupportedLocales
static Array<String> lookupSupportedLocales(Array<String> requestedLocales)
-
bestFitBestAvailableLocale
@RequiresApi(api = Build.VERSION_CODES.N) static ULocale bestFitBestAvailableLocale(ILocaleObject<out Object> requestedLocaleObject)
-
bestFitMatch
@RequiresApi(api = Build.VERSION_CODES.N) static LocaleMatcher.LocaleMatchResult bestFitMatch(Array<String> requestedLocales)
-
bestFitSupportedLocales
@RequiresApi(api = Build.VERSION_CODES.N) static Array<String> bestFitSupportedLocales(Array<String> requestedLocales)
-
-
-
-