PackageUninstaller

Provides the ability to uninstall applications from the device.

In essence, it's a repository of Sessions.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Creates a uninstall session with provided parameters.The returned session is in pending state.

Link copied to clipboard
abstract fun getActiveSessionsAsync(): ListenableFuture<List<Session<UninstallFailure>>>

Returns all active uninstall sessions tracked by this PackageUninstaller.

Link copied to clipboard
abstract fun getSessionAsync(sessionId: UUID): ListenableFuture<Session<UninstallFailure>?>

Returns a uninstall session which matches the provided sessionId, or null if not found.

Link copied to clipboard
abstract fun getSessionsAsync(): ListenableFuture<List<Session<UninstallFailure>>>

Returns all uninstall sessions tracked by this PackageUninstaller, active or not.