PathClassLoader 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 |
|---|---|
| PathClassLoader(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
| PathClassLoader(String, ClassLoader) |
Creates a |
| PathClassLoader(String, String, ClassLoader) |
Creates a |
PathClassLoader(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected PathClassLoader(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Dalvik.SystemInterop.PathClassLoader : nativeint * Android.Runtime.JniHandleOwnership -> Dalvik.SystemInterop.PathClassLoader
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
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
PathClassLoader(String, ClassLoader)
Creates a PathClassLoader that operates on a given list of files
and directories.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/ClassLoader;)V", "")]
public PathClassLoader(string? dexPath, Java.Lang.ClassLoader? parent);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/ClassLoader;)V", "")>]
new Dalvik.SystemInterop.PathClassLoader : string * Java.Lang.ClassLoader -> Dalvik.SystemInterop.PathClassLoader
Parameters
- dexPath
- String
Paths to DEX files or JAR, ZIP, or APK archives, separated by PathSeparator. DEX files provide classes; archives can provide classes or resources. Directories can also provide resources.
- parent
- ClassLoader
The parent class loader.
- 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
PathClassLoader(String, String, ClassLoader)
Creates a PathClassLoader that operates on two given
lists of files and directories.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;)V", "")]
public PathClassLoader(string? dexPath, string? librarySearchPath, Java.Lang.ClassLoader? parent);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;)V", "")>]
new Dalvik.SystemInterop.PathClassLoader : string * string * Java.Lang.ClassLoader -> Dalvik.SystemInterop.PathClassLoader
Parameters
- dexPath
- String
Paths to DEX files or JAR, ZIP, or APK archives, separated by PathSeparator. DEX files provide classes; archives can provide classes or resources. Directories can also provide resources.
- librarySearchPath
- String
The list of directories containing native libraries, delimited by PathSeparator; may be null. On Android 6.0 (API level 23) and later, 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.
- 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.