UninstallVersion

Version targeted by an uninstall session.

Use HIGHEST for name-only uninstall behavior. Exact targeting works only on API level 26 or higher; codes exceeding Int.MAX_VALUE require API level 28 or higher.

Constructors

Link copied to clipboard
constructor(code: Long, policy: VersionedUninstallPolicy = VersionedUninstallPolicy.STRICT)

Requests an exact version code, subject to policy.

constructor(code: Int, policy: VersionedUninstallPolicy = VersionedUninstallPolicy.STRICT)

Requests an exact Int version code, subject to policy.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val code: Long

the version code of an app to uninstall.

Link copied to clipboard

policy for preserving an exact version target. Defaults to VersionedUninstallPolicy.STRICT. Ignored for HIGHEST.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String