ApkInstallerAndroid

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open suspend override fun canRequestInstallPackages(): Boolean

Checks whether the application has the necessary permission to request the installation of packages.

Link copied to clipboard
open suspend override fun installApp(appFile: File, onResult: (success: Boolean, message: String?) -> Unit)

Installs an application from the specified file.

Link copied to clipboard
suspend fun installAppSilently(appFile: File, onResult: (success: Boolean, message: String?) -> Unit)

Installs an APK file silently without user interaction.

Link copied to clipboard
open suspend override fun requestInstallPackagesPermission()

Requests the permission to install packages from unknown sources.

Link copied to clipboard
open suspend override fun uninstallApp(onResult: (success: Boolean, message: String?) -> Unit)

Method to uninstall the current app.

open suspend override fun uninstallApp(packageName: String, onResult: (success: Boolean, message: String?) -> Unit)

Method to uninstall an app by package name.