DelegateLastClassLoader Constructors
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.
Overloads
| Name | Description |
|---|---|
| DelegateLastClassLoader(String, ClassLoader) |
Creates a |
| DelegateLastClassLoader(String, String, ClassLoader) |
Creates a |
| DelegateLastClassLoader(String, String, ClassLoader, Boolean) |
Creates a |
DelegateLastClassLoader(String, ClassLoader)
Creates a DelegateLastClassLoader with no additional native-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
Paths to DEX files, JAR, ZIP, or APK archives, or resource directories, separated by PathSeparator. DEX files provide classes; archives can provide classes or resources.
- parent
- ClassLoader
The parent class loader; may be null. If it is null and neither the boot class loader nor this loader finds a requested class, class loading can throw NullPointerException.
- Attributes
Remarks
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
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
Paths to DEX files, JAR, ZIP, or APK archives, or resource directories, separated by PathSeparator. DEX files provide classes; archives can provide classes or resources.
- librarySearchPath
- String
The list of directories containing native libraries, delimited by PathSeparator; may be null. Entries can also identify directories inside ZIP archives, such as app.apk!/lib/arm64-v8a. Libraries in the archive must be uncompressed.
- parent
- ClassLoader
The parent class loader; may be null. If it is null and neither the boot class loader nor this loader finds a requested class, class loading can throw NullPointerException.
- Attributes
Remarks
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
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
Paths to DEX files, JAR, ZIP, or APK archives, or resource directories, separated by PathSeparator. DEX files provide classes; archives can provide classes or resources.
- librarySearchPath
- String
The list of directories containing native libraries, delimited by PathSeparator; may be null. Entries can also identify directories inside ZIP archives, such as app.apk!/lib/arm64-v8a. Libraries in the archive must be uncompressed.
- parent
- ClassLoader
The parent class loader; may be null. If it is null and neither the boot class loader nor this loader finds a requested class, class loading can throw NullPointerException.
- delegateResourceLoading
- Boolean
true to include the parent in resource lookups after the boot class loader and this loader; this does not affect class-loading delegation.
- Attributes
Remarks
The loader searches for classes on the boot class path first, then on its DEX path, and finally in its parent. This differs from standard parent-first class loaders. When delegateResourceLoading is false, resource loading does not delegate to the parent.
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.