IIsolatedWorker.OnDownloadCompleted Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.