viewtify.preference
Preferences.IntPreference
PreferenceIntegerkiss.VariableInteger
Preference value for primitive int.
require(FunctionInteger, Integerrequirement)IntPreference
FunctionInteger, Integerrequirement)Functionrequirement |
|
IntPreference |
Chainable API. |
Add requirement on this preference.
requireMax(intmax)IntPreference
intmax)intmax |
A maximum value. |
IntPreference |
Chainable API. |
This is the maximum value that can be set. If it is greater than this value, this maximum value will be set instead.
requireMin(intmin)IntPreference
intmin)intmin |
A minimum value. |
IntPreference |
Chainable API. |
This is the minimum value that can be set. If it is less than this value, this minimum value will be set instead.
requireBetween(intmin, intmax)IntPreference
intmin, intmax)intmin |
A minimum value. |
intmax |
A maximum value. |
IntPreference |
Chainable API. |
The range of possible values. If a value outside this range is set, the closest value to this range will be set instead.
getAsInt()int
int |