Language

StaticInspectionCompanionProvider.Provide(Class) Method

Definition

Locates and instantiates the inspection companion class associated with an inspectable type.

[Android.Runtime.Register("provide", "(Ljava/lang/Class;)Landroid/view/inspector/InspectionCompanion;", "GetProvide_Ljava_lang_Class_Handler", ApiSince=29)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public virtual 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", ApiSince=29)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member Provide : Java.Lang.Class -> Android.Views.Inspectors.IInspectionCompanion
override this.Provide : Java.Lang.Class -> Android.Views.Inspectors.IInspectionCompanion

Parameters

cls
Class

The inspectable type whose companion is requested.

Returns

The inspection companion, or null when no compatible companion class is found.

Implements

Attributes

Applies to