LocaleList

@Immutable data class LocaleList : Collection<Locale>
kotlin.Any
   ↳ androidx.ui.text.LocaleList

Defines a list of Locale objects.

Summary

Public constructors

<init>(languageTags: String)

Create a LocaleList object from comma separated language tags.

<init>(vararg locales: Locale)

Creates a LocaleList object from a list of Locales.

<init>(localeList: List<Locale>)

Defines a list of Locale objects.

Public methods

operator Boolean
contains(element: Locale)

Boolean

operator Locale
get(i: Int)

Boolean

Iterator<Locale>

Properties

List<Locale>

Int

Companion properties

LocaleList

Returns Locale object which represents current locale

Public constructors

<init>

LocaleList(languageTags: String)

Create a LocaleList object from comma separated language tags.

Parameters
languageTags: String A comma separated IETF BCP47 compliant language tag.

<init>

LocaleList(vararg locales: Locale)

Creates a LocaleList object from a list of Locales.

<init>

LocaleList(localeList: List<Locale>)

Defines a list of Locale objects.

See Also

Public methods

contains

operator fun contains(element: Locale): Boolean

containsAll

fun containsAll(elements: Collection<Locale>): Boolean

get

operator fun get(i: Int): Locale

isEmpty

fun isEmpty(): Boolean

iterator

fun iterator(): Iterator<Locale>

Properties

localeList

val localeList: List<Locale>

size

val size: Int

Companion properties

current

val current: LocaleList

Returns Locale object which represents current locale