Partager via


IIsolatedWorker.OnDownloadCompleted Method

Definition

Handles a completed download.

[Android.Runtime.Register("onDownloadCompleted", "(Landroid/adservices/ondevicepersonalization/DownloadCompletedInput;Landroid/os/OutcomeReceiver;)V", "GetOnDownloadCompleted_Landroid_adservices_ondevicepersonalization_DownloadCompletedInput_Landroid_os_OutcomeReceiver_Handler:Android.AdServices.OnDevicePersonalization.IIsolatedWorker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)]
public virtual void OnDownloadCompleted (Android.AdServices.OnDevicePersonalization.DownloadCompletedInput input, Android.OS.IOutcomeReceiver receiver);
[<Android.Runtime.Register("onDownloadCompleted", "(Landroid/adservices/ondevicepersonalization/DownloadCompletedInput;Landroid/os/OutcomeReceiver;)V", "GetOnDownloadCompleted_Landroid_adservices_ondevicepersonalization_DownloadCompletedInput_Landroid_os_OutcomeReceiver_Handler:Android.AdServices.OnDevicePersonalization.IIsolatedWorker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)>]
abstract member OnDownloadCompleted : Android.AdServices.OnDevicePersonalization.DownloadCompletedInput * Android.OS.IOutcomeReceiver -> unit
override this.OnDownloadCompleted : Android.AdServices.OnDevicePersonalization.DownloadCompletedInput * Android.OS.IOutcomeReceiver -> unit

Parameters

input
DownloadCompletedInput

Download handler parameters.

receiver
IOutcomeReceiver

Callback that receives the result DownloadCompletedOutput or an IsolatedServiceException. <p>If this method returns a null result or exception via the callback, or throws a RuntimeException, no updates are made to the REMOTE_DATA table.

Attributes

Remarks

Handles a completed download. The platform downloads content using the parameters defined in the package manifest of the IsolatedService, calls this function after the download is complete, and updates the REMOTE_DATA table from IsolatedService#getRemoteData(RequestToken) with the result of this method.

Java documentation for android.adservices.ondevicepersonalization.IsolatedWorker.onDownloadCompleted(android.adservices.ondevicepersonalization.DownloadCompletedInput, android.os.OutcomeReceiver<android.adservices.ondevicepersonalization.DownloadCompletedOutput, android.adservices.ondevicepersonalization.IsolatedServiceException>).

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