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
/
Pattern
Pattern
@
Target
(
allowedTargets
=
[
AnnotationTarget.PROPERTY
]
)
annotation class
Pattern
(
val
regex
:
String
,
val
errorMessage
:
String
=
"Invalid format"
,
val
errorMessageRes
:
Int
=
0
)
Validates string pattern.
Members
Properties
error
Message
Link copied to clipboard
val
errorMessage
:
String
error
Message
Res
Link copied to clipboard
val
errorMessageRes
:
Int
=
0
regex
Link copied to clipboard
val
regex
:
String