LocaleList

Class of android.os · LocaleList.java · Android's reference

public final class LocaleList implements Parcelable

An ordered list of locales, the user's preference first.

Fields

public static final Parcelable.Creator<LocaleList> CREATOR source

Constructors

public LocaleList(Locale... list) source

Methods

public static LocaleList getEmptyLocaleList() source
public static LocaleList getDefault() source
public static LocaleList getAdjustedDefault() source
public static void setDefault(LocaleList locales) source
public static LocaleList forLanguageTags(String tags) source
public Locale get(int index) source
public boolean isEmpty() source
public int size() source
public int indexOf(Locale locale) source
public static boolean matchesLanguageAndScript(Locale supported, Locale desired) source

True when the two locales have the same language and the same script, explicit or inferred.

public Locale getFirstMatch(String[] supported) source
public String toLanguageTags() source
public boolean equals(Object o) source
public int hashCode() source
public String toString() source
public int describeContents() source
public void writeToParcel(Parcel dest, int flags) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.