Added in API level 29
StaticInspectionCompanionProvider
public
class
StaticInspectionCompanionProvider
extends Object
implements
InspectionCompanionProvider
java.lang.Object | |
↳ | android.view.inspector.StaticInspectionCompanionProvider |
An inspection companion provider that finds companions as inner classes or generated code.
Summary
Public constructors | |
---|---|
StaticInspectionCompanionProvider()
|
Public methods | |
---|---|
<T>
InspectionCompanion<T>
|
provide(Class<T> cls)
Provide an |
Inherited methods | |
---|---|
Public constructors
StaticInspectionCompanionProvider
public StaticInspectionCompanionProvider ()
Public methods
provide
Added in API level 29
public InspectionCompanion<T> provide (Class<T> cls)
Provide an InspectionCompanion
for the supplied class.
Implementing classes must not cache companion instances, and should instantiate a new one
for each request.
Parameters | |
---|---|
cls |
Class : This value cannot be null . |
Returns | |
---|---|
InspectionCompanion<T> |
This value may be null . |