Package 

Annotation KeepGettersAndSetters

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

    @Target(value = {ElementType.TYPE})@Retention(value = CLASS) 
    public @interface KeepGettersAndSetters
    
                        

    Add this annotation to a class, to keep all "void set*(***)" and get* methods.

    This is useful for classes that are controlled by animator-like classes that control various properties with reflection.

    NOTE: This is not needed for Views because their getters and setters are automatically kept by the default Android SDK ProGuard config.

    • Method Summary

      Modifier and Type Method Description
      • 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