Added in API level 29
    InspectionCompanionProvider
interface InspectionCompanionProvider
| android.view.inspector.InspectionCompanionProvider | 
An interface for services that can provide inspection companions for a class.
Summary
| Public methods | |
|---|---|
| abstract InspectionCompanion<T>? | 
            
             Provide an   | 
        
Public methods
provide
Added in API level 29
      abstract 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>: A Class representing the inspectable type This value cannot be null. | 
          
<T> | 
            The type to find the companion for | 
| Return | |
|---|---|
InspectionCompanion<T>? | 
            The inspection companion for the supplied type This value may be null. |