PackageInstaller.UnarchivalState.CreateUserActionRequiredState 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用者在開始解除封存前,需先採取行動。
[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
參數
- unarchiveId
- Int32
系統提供的 ID,作為 intent.action.UNARCHIVE 廣播的一部分,並隨 EXTRA_UNARCHIVE_ID 廣播。
- userActionIntent
- PendingIntent
意圖啟動後續操作以促進非歸檔流程(例如使用者需要登入)。 這個值不可能為零值。
傳回
一個新狀態要求用戶先完成提供的後續操作,才能開始非歸檔。
- 屬性
備註
使用者在開始解除封存前,需先採取行動。 例如,如果使用者必須先登入,這可以使用。
Android 參考資料。android.content.pm.PackageInstaller.UnarchivalState.createUserActionRequiredState
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。