sesl.androidx
Toggle table of contents
release
Target filter
release
Switch theme
Search in API
Skip to content
sesl.androidx
core
/
androidx.core.app
/
AppLocalesStorageHelper
App
Locales
Storage
Helper
@
RestrictTo
(
value
=
LIBRARY_GROUP_PREFIX
)
open
class
AppLocalesStorageHelper
Helper class to manage storage of locales in app's persistent files.
Members
Functions
persist
Locales
Link copied to clipboard
open
fun
persistLocales
(
@
NonNull
context
:
@
NonNull
Context
,
@
NonNull
locales
:
@
NonNull
String
)
Stores the provided locales in internal app file, using the application context.
read
Locales
Link copied to clipboard
@
NonNull
open
fun
readLocales
(
@
NonNull
context
:
@
NonNull
Context
)
:
@
NonNull
String
Returns app locales after reading from storage, fetched using the application context.