DexClassLoader Class

Definition

A class loader that loads classes from .jar and .apk files containing a classes.dex entry.

[Android.Runtime.Register("dalvik/system/DexClassLoader", DoNotGenerateAcw=true)]
public class DexClassLoader : Dalvik.SystemInterop.BaseDexClassLoader
[<Android.Runtime.Register("dalvik/system/DexClassLoader", DoNotGenerateAcw=true)>]
type DexClassLoader = class
    inherit BaseDexClassLoader
Inheritance
Attributes

Remarks

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.

Constructors

DexClassLoader(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

DexClassLoader(String, String, String, ClassLoader)

Creates a DexClassLoader that finds interpreted and native code.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Parent

Returns the parent class loader for delegation.

(Inherited from ClassLoader)
PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

ClearAssertionStatus()

Sets the default assertion status for this class loader to false and discards any package defaults or class assertion status settings associated with the class loader.

(Inherited from ClassLoader)
Clone()

Creates and returns a copy of this object.

(Inherited from Object)
DefineClass(Byte[], Int32, Int32)
Obsolete.

Converts an array of bytes into an instance of class Class.

(Inherited from ClassLoader)
DefineClass(String, Byte[], Int32, Int32)

Converts an array of bytes into an instance of class Class.

(Inherited from ClassLoader)
DefineClass(String, Byte[], Int32, Int32, ProtectionDomain)

Converts an array of bytes into an instance of class Class, with an optional ProtectionDomain.

(Inherited from ClassLoader)
DefineClass(String, ByteBuffer, ProtectionDomain)

Converts a java.nio.ByteBuffer <tt>ByteBuffer</tt> into an instance of class Class, with an optional ProtectionDomain.

(Inherited from ClassLoader)
DefinePackage(String, String, String, String, String, String, String, URL)

Defines a package by name in this ClassLoader.

(Inherited from ClassLoader)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
FindClass(String)

Finds the class with the specified binary name.

(Inherited from ClassLoader)
FindLibrary(String)

Returns the absolute path of the native library with the specified name, or null.

(Inherited from BaseDexClassLoader)
FindLoadedClass(String)

Returns the class with the given binary name if this loader has been recorded by the Java virtual machine as an initiating loader of a class with that binary name.

(Inherited from ClassLoader)
FindResource(String)

Finds the resource with the given name.

(Inherited from ClassLoader)
FindResources(String)

Returns an enumeration of java.net.URL <tt>URL</tt> objects representing all the resources with the given name.

(Inherited from ClassLoader)
FindSystemClass(String)

Finds a class with the specified binary name, loading it if necessary.

(Inherited from ClassLoader)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetPackage(String)

Returns a Package that has been defined by this class loader or any of its ancestors.

(Inherited from ClassLoader)
GetPackages()

Returns all of the Packages defined by this class loader and its ancestors.

(Inherited from ClassLoader)
GetResource(String)

Finds the resource with the given name.

(Inherited from ClassLoader)
GetResourceAsStream(String)

Returns an input stream for reading the specified resource.

(Inherited from ClassLoader)
GetResources(String)

Finds all the resources with the given name.

(Inherited from ClassLoader)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
LoadClass(String)

Loads the class with the specified binary name.

(Inherited from ClassLoader)
LoadClass(String, Boolean)

Loads the class with the specified binary name.

(Inherited from ClassLoader)
LoadClassAsync(String) (Inherited from ClassLoader)
LoadClassAsync(String, Boolean) (Inherited from ClassLoader)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
ResolveClass(Class)

Links the specified class.

(Inherited from ClassLoader)
SetClassAssertionStatus(String, Boolean)

Sets the desired assertion status for the named top-level class in this class loader and any nested classes contained therein.

(Inherited from ClassLoader)
SetDefaultAssertionStatus(Boolean)

Sets the default assertion status for this class loader.

(Inherited from ClassLoader)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetPackageAssertionStatus(String, Boolean)

Sets the package default assertion status for the named package.

(Inherited from ClassLoader)
SetSigners(Class, Object[])

Sets the signers of a class.

(Inherited from ClassLoader)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to