Share via


IInspectionCompanionProvider.Provide(Class) Method

Definition

Provide an InspectionCompanion for the supplied class.

[Android.Runtime.Register("provide", "(Ljava/lang/Class;)Landroid/view/inspector/InspectionCompanion;", "GetProvide_Ljava_lang_Class_Handler:Android.Views.Inspectors.IInspectionCompanionProviderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=29)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public Android.Views.Inspectors.IInspectionCompanion? Provide (Java.Lang.Class cls);
[<Android.Runtime.Register("provide", "(Ljava/lang/Class;)Landroid/view/inspector/InspectionCompanion;", "GetProvide_Ljava_lang_Class_Handler:Android.Views.Inspectors.IInspectionCompanionProviderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=29)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member Provide : Java.Lang.Class -> Android.Views.Inspectors.IInspectionCompanion

Parameters

cls
Class

A Class representing the inspectable type

Returns

The inspection companion for the supplied type

Attributes

Remarks

Provide an InspectionCompanion for the supplied class.

Implementing classes must not cache companion instances, and should instantiate a new one for each request.

Java documentation for android.view.inspector.InspectionCompanionProvider.provide(java.lang.Class<T>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to