Language

ServiceLoader.IProvider.Type Method

Definition

Returns the provider type.

[Android.Runtime.Register("type", "()Ljava/lang/Class;", "GetTypeHandler:Java.Util.ServiceLoader/IProviderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)]
public Java.Lang.Class? Type();
[<Android.Runtime.Register("type", "()Ljava/lang/Class;", "GetTypeHandler:Java.Util.ServiceLoader/IProviderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)>]
abstract member Type : unit -> Java.Lang.Class

Returns

The provider type

Attributes

Remarks

Returns the provider type. There is no guarantee that this type is accessible or that it has a public no-args constructor. The get() method should be used to obtain the provider instance. When a module declares that the provider class is created by a provider factory then this method returns the return type of its public static "provider()" method.

Java reference for java.util.ServiceLoader.Provider.type.

Applies to