語言

PccSandboxManager.StartNonPccProcessForDataMigration 方法

定義

請求框架啟動呼叫應用程式的非 PCC 遷移服務。

[Android.Runtime.Register("startNonPccProcessForDataMigration", "(Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=37)]
public void StartNonPccProcessForDataMigration(Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("startNonPccProcessForDataMigration", "(Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=37)>]
member this.StartNonPccProcessForDataMigration : Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

參數

executor
IExecutor

即將被調回的執行人。

callback
IOutcomeReceiver

回撥以接收遷移請求的結果。

屬性

備註

請求框架啟動呼叫應用程式的非 PCC 遷移服務。

此設計旨在讓 PCC 元件觸發 PCC 沙箱外的程序,執行如資料遷移等任務。 系統會尋找應用程式清單中未標記為 PCC 元件的 DataMigrationToPccService 擴展服務。 若找到,則啟動非 PCC 程序並啟動服務。

如果非 PCC 程序已經在執行,這會確保遷移服務會被觸發。 系統會在服務表示已接受或拒絕請求時解除綁定,或在逾時後DataMigrationToPccService.MIGRATION_TIMEOUT_MS未執行時解綁。

Android 參考資料。android.app.privatecompute.PccSandboxManager.startNonPccProcessForDataMigration

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於