DelegateLastClassLoader Constructors

Definition

Overloads

Name Description
DelegateLastClassLoader(String, ClassLoader)

Creates a DelegateLastClassLoader with no library search path and parent resource delegation enabled.

DelegateLastClassLoader(String, String, ClassLoader)

Creates a DelegateLastClassLoader with parent resource delegation enabled.

DelegateLastClassLoader(String, String, ClassLoader, Boolean)

Creates a DelegateLastClassLoader for the specified DEX path and native-library search path.

DelegateLastClassLoader(String, ClassLoader)

Creates a DelegateLastClassLoader with no library search path and parent resource delegation enabled.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/ClassLoader;)V", "", ApiSince=27)]
public DelegateLastClassLoader(string? dexPath, Java.Lang.ClassLoader? parent);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/ClassLoader;)V", "", ApiSince=27)>]
new Dalvik.SystemInterop.DelegateLastClassLoader : string * Java.Lang.ClassLoader -> Dalvik.SystemInterop.DelegateLastClassLoader

Parameters

dexPath
String

The list of JAR or APK files containing classes and resources, delimited by PathSeparator.

parent
ClassLoader

The parent class loader; may be null for the boot class loader.

Attributes

Remarks

AOSP source documentation for this convenience overload.

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 Apache License 2.0.

Applies to

DelegateLastClassLoader(String, String, ClassLoader)

Creates a DelegateLastClassLoader with parent resource delegation enabled.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;)V", "", ApiSince=27)]
public DelegateLastClassLoader(string? dexPath, string? librarySearchPath, Java.Lang.ClassLoader? parent);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;)V", "", ApiSince=27)>]
new Dalvik.SystemInterop.DelegateLastClassLoader : string * string * Java.Lang.ClassLoader -> Dalvik.SystemInterop.DelegateLastClassLoader

Parameters

dexPath
String

The list of JAR or APK files containing classes and resources, delimited by PathSeparator.

librarySearchPath
String

The list of directories containing native libraries, delimited by PathSeparator; may be null.

parent
ClassLoader

The parent class loader; may be null for the boot class loader.

Attributes

Remarks

AOSP source documentation for this convenience overload.

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 Apache License 2.0.

Applies to

DelegateLastClassLoader(String, String, ClassLoader, Boolean)

Creates a DelegateLastClassLoader for the specified DEX path and native-library search path.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;Z)V", "", ApiSince=29)]
public DelegateLastClassLoader(string dexPath, string? librarySearchPath, Java.Lang.ClassLoader? parent, bool delegateResourceLoading);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;Z)V", "", ApiSince=29)>]
new Dalvik.SystemInterop.DelegateLastClassLoader : string * string * Java.Lang.ClassLoader * bool -> Dalvik.SystemInterop.DelegateLastClassLoader

Parameters

dexPath
String

The list of JAR or APK files containing classes and resources, delimited by PathSeparator.

librarySearchPath
String

The list of directories containing native libraries, delimited by PathSeparator; may be null.

parent
ClassLoader

The parent class loader; may be null for the boot class loader.

delegateResourceLoading
Boolean

true to delegate resource loading to the parent when the resource is not found; this does not affect class-loading delegation.

Attributes

Remarks

The loader searches the boot class path first, then its DEX path, and finally its parent. This differs from standard parent-first class loaders.

Android platform documentation

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