Added in API level 29

InspectionCompanionProvider


public interface InspectionCompanionProvider

android.view.inspector.InspectionCompanionProvider


An interface for services that can provide inspection companions for a class.

Summary

Public methods

abstract <T> InspectionCompanion<T> provide(Class<T> cls)

Provide an InspectionCompanion for the supplied class.

Public methods

provide

Added in API level 29
public abstract 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: A Class representing the inspectable type This value cannot be null.

Returns
InspectionCompanion<T> The inspection companion for the supplied type This value may be null.