# A2uiLocaleProvider

Artifact: [androidx.a2ui:a2ui-model](https://developer.android.com/jetpack/androidx/releases/a2ui) [View Source](https://cs.android.com/search?q=file:androidx/a2ui/model/catalog/functions/A2uiLocaleProvider.kt+class:androidx.a2ui.model.catalog.functions.A2uiLocaleProvider) Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

*** ** * ** ***


```
public fun interface A2uiLocaleProvider
```

<br />

*** ** * ** ***

Resolves the current `https://developer.android.com/reference/java/util/Locale.html`.

## Summary

| ### Public fields |
|---|---|
| `default static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiLocaleProvider` | `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiLocaleProvider#Default()` Default provider using the current system locale. |

| ### Public methods |
|---|---|
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Locale.html` | `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiLocaleProvider#getLocale()()` Returns the resolved `https://developer.android.com/reference/java/util/Locale.html`. |

## Public fields

### Default

```
default static final @NonNull A2uiLocaleProvider Default
```

Default provider using the current system locale.

## Public methods

### getLocale

Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

```
abstract @NonNull Locale getLocale()
```

Returns the resolved `https://developer.android.com/reference/java/util/Locale.html`.