{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

LifecycleProcessor

@SupportedAnnotationTypes(value = ["androidx.lifecycle.OnLifecycleEvent"])
public final class LifecycleProcessor extends AbstractProcessor

java.lang.Object
   ↳ javax.annotation.processing.AbstractProcessor
     ↳ androidx.lifecycle.LifecycleProcessor

Summary

Public constructors

Public methods

@NonNull SourceVersion
boolean
process(
    @NonNull Set<@NonNull TypeElement> annotations,
    @NonNull RoundEnvironment roundEnv
)

Inherited fields

From javax.annotation.processing.AbstractProcessor

Inherited methods

From javax.annotation.processing.AbstractProcessor

Public constructors

LifecycleProcessor

public LifecycleProcessor()

Public methods

getSupportedSourceVersion

public @NonNull SourceVersion getSupportedSourceVersion()

process

public boolean process(
    @NonNull Set<@NonNull TypeElement> annotations,
    @NonNull RoundEnvironment roundEnv
)