UninstallFailure

Represents the cause of uninstallation failure.

Inheritors

Types

Link copied to clipboard
data class Aborted(val message: String?) : UninstallFailure

The operation failed because it was actively aborted. For example, the user actively declined uninstall request.

Link copied to clipboard
data class Blocked @JvmOverloads constructor(val message: String?, val otherPackageName: String? = null) : UninstallFailure

The operation failed because it was blocked. For example, a device policy may be blocking the operation, a package verifier may have blocked the operation, or the app may be required for core system operation.

Link copied to clipboard
data class Conflict @JvmOverloads constructor(val message: String?, val otherPackageName: String? = null) : UninstallFailure

The operation failed because it conflicts (or is inconsistent with) with another package already installed on the device. For example, an existing permission, incompatible certificates, etc. The user may be able to uninstall another app to fix the issue.

Link copied to clipboard

The operation failed because an exception was thrown.

Link copied to clipboard
data class Generic @JvmOverloads constructor(val message: String? = null) : UninstallFailure

The operation failed in a generic way.

Properties

Link copied to clipboard
open val message: String?