Package 

Annotation Variable

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

    @Target(value = ElementType.FIELD)@Retention(value = RetentionPolicy.RUNTIME) 
    public @interface Variable
    
                        

    CleverTap variable annotation.

    Use this to make this variable changeable from the CleverTap dashboard. Variables must be of type boolean, byte, short, int, long, float, double, char, String, or Map.

    Variables with this annotation update when the API call for CleverTap fetch completes successfully or fails (in which case values are loaded from a cache stored on the device).

    • Method Summary

      Modifier and Type Method Description
      abstract String group() (Optional).
      abstract String name() (Optional).
      • 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
    • Method Detail

      • group

         abstract String group()

        (Optional). The group to put the variable in. Use "." to nest groups.

      • name

         abstract String name()

        (Optional). The name of the variable. If not set, then uses the actual name of the field.