InstallPreapproval

inline fun InstallPreapproval(packageName: String, label: String, languageTag: String, configure: InstallPreapprovalDsl.() -> Unit = {}): InstallPreapproval

Constructs a new instance of InstallPreapproval.

Parameters

packageName

the package name of the app to be installed.

label

the label representing the app to be installed.

languageTag

the locale of the app label being installed. Represented by IETF BCP 47 language tag.


@RequiresApi(value = 24)
inline fun InstallPreapproval(packageName: String, label: String, locale: ULocale, configure: InstallPreapprovalDsl.() -> Unit = {}): InstallPreapproval
@RequiresApi(value = 21)
inline fun InstallPreapproval(packageName: String, label: String, locale: Locale, configure: InstallPreapprovalDsl.() -> Unit = {}): InstallPreapproval

Constructs a new instance of InstallPreapproval.

Parameters

packageName

the package name of the app to be installed.

label

the label representing the app to be installed.

locale

the locale of the app label being installed.