AppComponentFactory.InstantiateService(ClassLoader, String, Intent) Method

Definition

Allows application to override the creation of services.

[Android.Runtime.Register("instantiateService", "(Ljava/lang/ClassLoader;Ljava/lang/String;Landroid/content/Intent;)Landroid/app/Service;", "GetInstantiateService_Ljava_lang_ClassLoader_Ljava_lang_String_Landroid_content_Intent_Handler", ApiSince=28)]
public virtual Android.App.Service InstantiateService (Java.Lang.ClassLoader cl, string className, Android.Content.Intent? intent);
[<Android.Runtime.Register("instantiateService", "(Ljava/lang/ClassLoader;Ljava/lang/String;Landroid/content/Intent;)Landroid/app/Service;", "GetInstantiateService_Ljava_lang_ClassLoader_Ljava_lang_String_Landroid_content_Intent_Handler", ApiSince=28)>]
abstract member InstantiateService : Java.Lang.ClassLoader * string * Android.Content.Intent -> Android.App.Service
override this.InstantiateService : Java.Lang.ClassLoader * string * Android.Content.Intent -> Android.App.Service

Parameters

cl
ClassLoader

The default classloader to use for instantiation.

className
String

The class to be instantiated.

intent
Intent

Intent creating the class.

Returns

Service
Attributes

Remarks

Java documentation for android.app.AppComponentFactory.instantiateService(java.lang.ClassLoader, java.lang.String, android.content.Intent).

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