AppInstaller

Functions

Link copied to clipboard
abstract suspend fun canRequestInstallPackages(): Boolean

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

Link copied to clipboard
abstract suspend fun installApp(appFile: <Error class: unknown class>, onResult: (success: Boolean, message: String?) -> Unit)

Installs an application from the specified file.

Link copied to clipboard
abstract suspend fun requestInstallPackagesPermission()

Requests the permission to install packages from unknown sources.

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

Uninstalls the actual application from the device.

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

Uninstalls an application based on the provided package name.