viewtify

viewtify.preference

Preferences.LongPreference

Preference value for primitive long.

require(FunctionLong, Longrequirement)LongPreference

FunctionLong, Longrequirement
LongPreference

Chainable API.

Add requirement on this preference.

requireMax(longmax)LongPreference

longmax

A maximum value.

LongPreference

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(longmin)LongPreference

longmin

A minimum value.

LongPreference

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(longmin, longmax)LongPreference

longmin

A minimum value.

longmax

A maximum value.

LongPreference

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.

getAsLong()long

long