Locale

class Locale

The Locale data structure represents a geographical region or location.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The country of the locale. Must be a valid ISO 3166 country code. For example, the code US refers to the United States of America.

Link copied to clipboard

The state or subdivision of the locale. A valid ISO 3166-2 subdivision code. For example, the code WA refers to the state of Washington.

Functions

Link copied to clipboard
inline fun copy(block: Locale.Builder.() -> Unit = {}): Locale
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String