InstallParametersDsl

Properties

Link copied to clipboard
abstract val apks: MutableApkList

Mutable list of APKs URIs to install in one session.

Link copied to clipboard
abstract override var confirmation: Confirmation
Link copied to clipboard

Installation constraints.

Link copied to clipboard

Type of the package installer implementation.

Link copied to clipboard
abstract var installMode: InstallMode

Mode for an install session. Takes effect only when using InstallerType.SESSION_BASED installer.

Link copied to clipboard
abstract var name: String

Optional name of the session. It may be a name of the app being installed or a file name. Used in default notification content text.

Link copied to clipboard
abstract override var notificationData: NotificationData
Link copied to clipboard

Indicates the package source of the app being installed. This is informational and may be used as a signal by the system.

Link copied to clipboard

Details for requesting the pre-commit install approval.

Link copied to clipboard

Optionally indicate whether the package being installed needs the update ownership enforcement. Once the update ownership enforcement is enabled, the other installers will need the user action to update the package even if the installers have been granted the INSTALL_PACKAGES permission. Default to false.

Link copied to clipboard

Indicate whether user action should be required when the session is committed. By default equals to true.

Functions

Link copied to clipboard
Link copied to clipboard

Configures notification DSL.

Link copied to clipboard
@RequiresApi(value = 24)
inline fun InstallParametersDsl.preapproval(packageName: String, label: String, locale: ULocale, configure: InstallPreapprovalDsl.() -> Unit = {})
@RequiresApi(value = 21)
inline fun InstallParametersDsl.preapproval(packageName: String, label: String, locale: Locale, configure: InstallPreapprovalDsl.() -> Unit = {})
inline fun InstallParametersDsl.preapproval(packageName: String, label: String, languageTag: String, configure: InstallPreapprovalDsl.() -> Unit = {})