Language

PackageInstaller.UnarchivalState.CreateUserActionRequiredState Method

Definition

User action is required before commencing with the unarchival for the given unarchiveId.

[Android.Runtime.Register("createUserActionRequiredState", "(ILandroid/app/PendingIntent;)Landroid/content/pm/PackageInstaller$UnarchivalState;", "", ApiSince=35)]
public static Android.Content.PM.PackageInstaller.UnarchivalState CreateUserActionRequiredState(int unarchiveId, Android.App.PendingIntent userActionIntent);
[<Android.Runtime.Register("createUserActionRequiredState", "(ILandroid/app/PendingIntent;)Landroid/content/pm/PackageInstaller$UnarchivalState;", "", ApiSince=35)>]
static member CreateUserActionRequiredState : int * Android.App.PendingIntent -> Android.Content.PM.PackageInstaller.UnarchivalState

Parameters

unarchiveId
Int32

the ID provided by the system as part of the intent.action.UNARCHIVE broadcast with EXTRA_UNARCHIVE_ID.

userActionIntent
PendingIntent

intent to start a follow up action required to facilitate the unarchival flow (e.g. user needs to log in). This value cannot be null.

Returns

Attributes

Remarks

User action is required before commencing with the unarchival for the given unarchiveId. E.g., this could be used if it's necessary for the user to sign-in first.

Android reference for android.content.pm.PackageInstaller.UnarchivalState.createUserActionRequiredState.

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