Added in API level 29
StaticInspectionCompanionProvider
open class StaticInspectionCompanionProvider : InspectionCompanionProvider
| kotlin.Any | |
| ↳ | android.view.inspector.StaticInspectionCompanionProvider |
An inspection companion provider that finds companions as inner classes or generated code.
Summary
| Public constructors | |
|---|---|
| Public methods | |
|---|---|
| open InspectionCompanion<T>? |
Provide an |
Public constructors
StaticInspectionCompanionProvider
StaticInspectionCompanionProvider()
Public methods
provide
Added in API level 29
open fun <T : Any!> provide(cls: Class<T>): InspectionCompanion<T>?
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<T>: This value cannot be null. |
<T> |
The type to find the companion for |
| Return | |
|---|---|
InspectionCompanion<T>? |
This value may be null. |