kmp-settings
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
kmp-settings
settings-core
/
io.github.mlmgames.settings.core.annotations
/
Length
Length
@
Target
(
allowedTargets
=
[
AnnotationTarget.PROPERTY
]
)
annotation class
Length
(
val
min
:
Int
=
0
,
val
max
:
Int
=
Int.MAX_VALUE
,
val
errorMessage
:
String
=
"Invalid length"
,
val
errorMessageRes
:
Int
=
0
)
Validates string length.
Members
Properties
error
Message
Link copied to clipboard
val
errorMessage
:
String
error
Message
Res
Link copied to clipboard
val
errorMessageRes
:
Int
=
0
max
Link copied to clipboard
val
max
:
Int
min
Link copied to clipboard
val
min
:
Int
=
0