toggle menu
micro_utils.dokka
0.20.23
android
common
jvm
switch theme
search in API
micro_utils.dokka
/
dev.inmo.micro_utils.strings
Package-level
declarations
Types
Functions
Types
String
Resource
Link copied to clipboard
class
StringResource
(
val
default
:
String
,
val
map
:
Map
<
IetfLang
,
Lazy
<
String
>
>
)
Use this class as a type of your strings object fields. For example:
Functions
build
String
Resource
Link copied to clipboard
inline
fun
buildStringResource
(
default
:
String
,
builder
:
StringResource.Builder
.
(
)
->
Unit
)
:
StringResource
translation
Link copied to clipboard
android
jvm
fun
Context
.
translation
(
resource
:
StringResource
)
:
String
fun
Configuration
.
translation
(
resource
:
StringResource
)
:
String
fun
Resources
.
translation
(
resource
:
StringResource
)
:
String
fun
StringResource
.
translation
(
context
:
Context
)
:
String
fun
StringResource
.
translation
(
configuration
:
Configuration
)
:
String
fun
StringResource
.
translation
(
resources
:
Resources
)
:
String
fun
StringResource
.
translation
(
locale
:
Locale
=
Locale.getDefault()
)
:
String
fun
Locale
.
translation
(
resource
:
StringResource
)
:
String