Sets and validates and persists the value of the preferences with the given type.
Syntax
public void setLongPreference (
String key,
long value
) throws SDMPreferencesException
Parameters
-
key –
The key of the preference
-
value –
The new value of the preference
Exceptions
-
SDMPreferencesException class –
if the new value of the preference is invalid for any reasons