@Retention(value=CLASS) @Target(value=METHOD) public @interface DefaultInt
Use on methods in SharedPref annotated class to specified the default
value of this preference.
The annotation value must be an int.
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 |
|---|---|
int |
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.