@Beta
public interface LintListener
NOTE: This is not a public or final API; if you rely on this be prepared to adjust your code for the next tools release.
Modifier and Type | Interface and Description |
---|---|
static class |
LintListener.EventType
The various types of events provided to lint listeners
|
Modifier and Type | Method and Description |
---|---|
void |
update(LintDriver driver,
LintListener.EventType type,
Context context)
Notifies listeners that the event of the given type has occurred.
|
void update(@NonNull LintDriver driver, @NonNull LintListener.EventType type, @Nullable Context context)
Context
object (except for the
LintListener.EventType.STARTING
, LintListener.EventType.CANCELED
or
LintListener.EventType.COMPLETED
events which are fired outside of project
contexts.)driver
- the driver running through the checkstype
- the type of event that occurredcontext
- the context providing additional information