Added in API level 26

InMemoryDexClassLoader

class InMemoryDexClassLoader : BaseDexClassLoader
kotlin.Any
   ↳ java.lang.ClassLoader
   ↳ dalvik.system.BaseDexClassLoader
   ↳ dalvik.system.InMemoryDexClassLoader

A ClassLoader implementation that loads classes from a buffer containing a DEX file. This can be used to execute code that has not been written to the local file system.

Summary

Public constructors

Creates a new in-memory DEX class loader.

Create an in-memory DEX class loader with the given dex buffers.

InMemoryDexClassLoader(dexBuffers: Array<ByteBuffer!>, librarySearchPath: String?, parent: ClassLoader?)

Create an in-memory DEX class loader with the given dex buffers.

Inherited functions