viewtify

viewtify.preference

Preferences.IntPreference

Preference value for primitive int.

require(FunctionInteger, Integerrequirement)IntPreference

FunctionInteger, Integerrequirement
IntPreference

Chainable API.

Add requirement on this preference.

requireMax(intmax)IntPreference

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

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

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