Annotation Type KeyName


  • @Documented
    @Target(FIELD)
    @Retention(CLASS)
    public @interface KeyName
    Marks a field as an SharedPreference key. This field will be mapped as the SharedPreference key with Upper camel case.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String value
      Preference Key name value in the SharedPreference.
    • Element Detail

      • value

        java.lang.String value
        Preference Key name value in the SharedPreference. If not used, defaults to the field value with Upper camel case.
        Returns:
        The preference key name value of the SharedPreference.