LocaleList


Defines a list of Locale objects.

See also
TextStyle
SpanStyle

Summary

Public companion properties

LocaleList

An empty instance of LocaleList.

Cmn
LocaleList

Returns Locale object which represents current locale

Cmn

Public constructors

LocaleList(languageTags: String)

Create a LocaleList object from comma separated language tags.

Cmn
LocaleList(localeList: List<Locale>)
Cmn
LocaleList(vararg locales: Locale)

Creates a LocaleList object from a list of Locales.

Cmn

Public functions

open operator Boolean
contains(element: Locale)
Cmn
open Boolean
Cmn
open operator Boolean
equals(other: Any?)
Cmn
operator Locale
get(i: Int)
Cmn
open Int
Cmn
open Boolean
Cmn
open operator Iterator<Locale>
Cmn
open String
Cmn

Public properties

List<Locale>
Cmn
open Int
Cmn

Public companion properties

Empty

val EmptyLocaleList

An empty instance of LocaleList. Usually used to reference a lack of explicit Locale configuration.

current

val currentLocaleList

Returns Locale object which represents current locale

Public constructors

LocaleList

LocaleList(languageTags: String)

Create a LocaleList object from comma separated language tags.

Parameters
languageTags: String

A comma separated IETF BCP47 compliant language tag.

LocaleList

LocaleList(localeList: List<Locale>)

LocaleList

LocaleList(vararg locales: Locale)

Creates a LocaleList object from a list of Locales.

Public functions

contains

open operator fun contains(element: Locale): Boolean

containsAll

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

equals

open operator fun equals(other: Any?): Boolean

get

operator fun get(i: Int): Locale

hashCode

open fun hashCode(): Int

isEmpty

open fun isEmpty(): Boolean

iterator

open operator fun iterator(): Iterator<Locale>

toString

open fun toString(): String

Public properties

localeList

val localeListList<Locale>

size

open val sizeInt