@Retention(value=CLASS) @Target(value=METHOD) public @interface DefaultRes
Use on methods in SharedPref
annotated class to specified the default
value of this preference.
The annotation value must be one of R.* fields. If the value is not set, the method name will be used as the R.* field name.
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 | Optional Element and Description |
---|---|
int |
keyRes
The R.string.* field which refers to the key of the preference.
|
String |
resName
The resource name which refers the the resource which is used as the
default value of the preference.
|
int |
value
The R.id.* field which refers the the resource which is used as the
default value of the preference.
|
public abstract int value
public abstract String resName
Copyright © 2010-2015. All Rights Reserved.