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
/
Range
Range
@
Target
(
allowedTargets
=
[
AnnotationTarget.PROPERTY
]
)
annotation class
Range
(
val
min
:
Double
=
Double.MIN_VALUE
,
val
max
:
Double
=
Double.MAX_VALUE
,
val
errorMessage
:
String
=
"Value out of range"
,
val
errorMessageRes
:
Int
=
0
)
Validates numeric range for Int/Long/Float/Double fields.
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
:
Double
min
Link copied to clipboard
val
min
:
Double