Language

PackageInstaller.UnarchivalState.CreateInsufficientStorageState Method

Definition

There is not enough storage to start the unarchival for the given unarchiveId.

[Android.Runtime.Register("createInsufficientStorageState", "(IJLandroid/app/PendingIntent;)Landroid/content/pm/PackageInstaller$UnarchivalState;", "", ApiSince=35)]
public static Android.Content.PM.PackageInstaller.UnarchivalState CreateInsufficientStorageState(int unarchiveId, long requiredStorageBytes, Android.App.PendingIntent? userActionIntent);
[<Android.Runtime.Register("createInsufficientStorageState", "(IJLandroid/app/PendingIntent;)Landroid/content/pm/PackageInstaller$UnarchivalState;", "", ApiSince=35)>]
static member CreateInsufficientStorageState : int * int64 * 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.

requiredStorageBytes
Int64

If the error is UNARCHIVAL_ERROR_INSUFFICIENT_STORAGE, this field should be set to specify how many additional bytes of storage are required to unarchive the app.

userActionIntent
PendingIntent

can optionally be set to provide a custom storage-clearing action. This value may be null.

Returns

Attributes

Remarks

There is not enough storage to start the unarchival for the given unarchiveId.

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

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