ServiceLoader.IProvider.Type Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.