Back to Filament

UsedByReflection

docs/android/dokka/filament-android/com.google.android.filament.proguard/-used-by-reflection/index.md

1.75.02.6 KB
Original Source

//filament-android/com.google.android.filament.proguard/UsedByReflection

UsedByReflection

[main]
@Target(value = [ElementType.METHOD, ElementType.FIELD, ElementType.TYPE, ElementType.CONSTRUCTOR])

annotation class 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:

kotlin

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

Functions

NameSummary
annotationType[main]
abstract fun annotationType(): Class<out Annotation>
equals[main]
abstract fun equals(p: Any): Boolean
hashCode[main]
abstract fun hashCode(): Int
toString[main]
abstract fun toString(): String
value[main]
abstract fun value(): String