AppComponentFactory.InstantiateApplication(ClassLoader, String) Method

Definition

Allows application to override the creation of the application object.

[Android.Runtime.Register("instantiateApplication", "(Ljava/lang/ClassLoader;Ljava/lang/String;)Landroid/app/Application;", "GetInstantiateApplication_Ljava_lang_ClassLoader_Ljava_lang_String_Handler", ApiSince=28)]
public virtual Android.App.Application InstantiateApplication (Java.Lang.ClassLoader cl, string className);
[<Android.Runtime.Register("instantiateApplication", "(Ljava/lang/ClassLoader;Ljava/lang/String;)Landroid/app/Application;", "GetInstantiateApplication_Ljava_lang_ClassLoader_Ljava_lang_String_Handler", ApiSince=28)>]
abstract member InstantiateApplication : Java.Lang.ClassLoader * string -> Android.App.Application
override this.InstantiateApplication : Java.Lang.ClassLoader * string -> Android.App.Application

Parameters

cl
ClassLoader

The default classloader to use for instantiation.

className
String

The class to be instantiated.

Returns

Application
Attributes

Remarks

Java documentation for android.app.AppComponentFactory.instantiateApplication(java.lang.ClassLoader, java.lang.String).

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