AbstractViewPluggableApkPlugin

Constructors

Link copied to clipboard
constructor(apkPluginProvider: ApkPluginProvider)

Functions

Link copied to clipboard

直接添加一个 DexClassLoader .

open fun addClassLoader(classLoaderConfig: DexClassLoaderConfig.() -> Unit): BaseDexClassLoader?

添加一个 DexClassLoader .

Link copied to clipboard
open fun configureClassLoader(classLoaderConfig: DexClassLoaderConfig.() -> Unit)

配置 DexClassLoader , 一般用于排除指定的类, 如果找不到 DexClassLoader 会抛异常.

open fun configureClassLoader(dexClassLoader: BaseDexClassLoader, classLoaderConfig: DexClassLoaderConfig.() -> Unit)

配置指定的 DexClassLoader , 如果找不到 DexClassLoader 会抛异常.

Link copied to clipboard

新建一个 DexClassLoader .

Link copied to clipboard
abstract fun createView(hostContext: Context, pluginContext: Context): View
Link copied to clipboard

获取 android 的 Application 对象.

Link copied to clipboard

获取插件的类加载器.

Link copied to clipboard

获取所有的 DexClassLoader .

Link copied to clipboard
open fun getFilesDir(): File

获取插件安装路径.

Link copied to clipboard
open fun getName(): String

获取插件名.

Link copied to clipboard

获取 apk 插件的 PackageInfo 对象.

Link copied to clipboard

获取插件信息.

Link copied to clipboard

获取 apk 插件的 Resources 对象.

Link copied to clipboard

获取插件配置信息.

Link copied to clipboard
open fun loadClass(className: String): Class<*>

加载指定的类.

Link copied to clipboard

移除一个 DexClassLoader .