Package 

Annotation UsedByReflection

  • All Implemented Interfaces:
    java.lang.annotation.Annotation

    @Target(value = {ElementType.METHOD, ElementType.FIELD, ElementType.TYPE, ElementType.CONSTRUCTOR}) 
    public @interface UsedByReflection
    
                        

    Annotation used for marking methods and fields that are called by reflection. Useful for keeping components that would otherwise be removed by Proguard. Use the value parameter to mention a file that calls this method. Note that adding this annotation to a method is not enough to guarantee that it is kept - either its class must be referenced elsewhere in the program, or the class must be annotated with this as well. Usage example:

    
    @UsedByReflection("PeopleListItemView.java")
    public PeopleListItemViewV11(Context context) {
        super(context);
    }
    
    • Method Summary

      Modifier and Type Method Description
      abstract String value()
      • Methods inherited from class java.lang.annotation.Annotation

        annotationType, equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait