@Retention(value=CLASS) @Target(value=METHOD) public @interface DefaultLong
Use on methods in SharedPref
annotated class to specified the default
value of this preference.
The annotation value must be a long
.
The key of the preference will be the method name by default. This can be
overridden by specifying a string resource with the keyRes()
parameter.
Modifier and Type | Required Element and Description |
---|---|
long |
value
The default value of the preference.
|
Modifier and Type | Optional Element and Description |
---|---|
int |
keyRes
The R.string.* field which refers to the key of the preference.
|
Copyright © 2010-2015. All Rights Reserved.