org.androidannotations.annotations.sharedpreferences
Annotation Type Pref


@Retention(value=CLASS)
@Target(value=FIELD)
public @interface Pref

Injects an SharedPref annotated class in any enhanced class.

The field MUST be of a type that is generated using SharedPref and therefore extends SharedPreferencesHelper.

Note: To prevent you from any building issues, you should use fully qualified name for the field type.

Example :
 @EBean
 public class MyBean {
 
        @Pref
        mypackage.MyPref_ myPref;
 }
 
 
 package mypackage;
 
 @SharedPref
 public interface MyPref {
 
 }
 

See Also:
SharedPref



Copyright © 2010-2014. All Rights Reserved.