Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

Keep

@Target([AnnotationTarget.CLASS, AnnotationTarget.FILE, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.FIELD]) class Keep
androidx.annotation.Keep

Denotes that the annotated element should not be removed when the code is minified at build time. This is typically used on methods and classes that are accessed only via reflection so a compiler may think that the code is unused.

Example:

<code>
   @Keep
   public void foo() {
       ...
   }
  </code>

Summary

Public constructors

Denotes that the annotated element should not be removed when the code is minified at build time.

Public constructors

<init>

Keep()

Denotes that the annotated element should not be removed when the code is minified at build time. This is typically used on methods and classes that are accessed only via reflection so a compiler may think that the code is unused.

Example:

<code>
   @Keep
   public void foo() {
       ...
   }
  </code>