PackageInstaller.PreapprovalDetails.Builder.SetLocale(ULocale) Method

Definition

The locale is used to get the app label from the APKs (includes the base APK and split APKs) related to the package to be installed.

[Android.Runtime.Register("setLocale", "(Landroid/icu/util/ULocale;)Landroid/content/pm/PackageInstaller$PreapprovalDetails$Builder;", "", ApiSince=34)]
public Android.Content.PM.PackageInstaller.PreapprovalDetails.Builder SetLocale(Android.Icu.Util.ULocale value);
[<Android.Runtime.Register("setLocale", "(Landroid/icu/util/ULocale;)Landroid/content/pm/PackageInstaller$PreapprovalDetails$Builder;", "", ApiSince=34)>]
member this.SetLocale : Android.Icu.Util.ULocale -> Android.Content.PM.PackageInstaller.PreapprovalDetails.Builder

Parameters

value
ULocale

Returns

Attributes

Remarks

The locale is used to get the app label from the APKs (includes the base APK and split APKs) related to the package to be installed. The caller needs to make sure the app label is consistent with the app label of PreapprovalDetails when validating the installation. Otherwise, the pre-approval install session will fail.

Android reference for android.content.pm.PackageInstaller.PreapprovalDetails.Builder.setLocale.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to