PackageInstaller

Provides the ability to install applications on the device. This includes support for monolithic APKs and split APKs.

In essence, it's a repository of ProgressSessions.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Creates an install session with provided parameters. The returned session is in pending state.

Link copied to clipboard
abstract fun getActiveSessionsAsync(): ListenableFuture<List<ProgressSession<InstallFailure>>>

Returns all active install sessions tracked by this PackageInstaller.

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

Returns an install session which matches the provided sessionId, or null if not found.

Link copied to clipboard
abstract fun getSessionsAsync(): ListenableFuture<List<ProgressSession<InstallFailure>>>

Returns all install sessions tracked by this PackageInstaller, active or not.