MbmsDownloadSession.ResetDownloadKnowledge(DownloadRequest) 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.
Resets the middleware's knowledge of previously-downloaded files in this download request.
[Android.Runtime.Register("resetDownloadKnowledge", "(Landroid/telephony/mbms/DownloadRequest;)V", "GetResetDownloadKnowledge_Landroid_telephony_mbms_DownloadRequest_Handler", ApiSince=28)]
public virtual void ResetDownloadKnowledge (Android.Telephony.Mbms.DownloadRequest? downloadRequest);
[<Android.Runtime.Register("resetDownloadKnowledge", "(Landroid/telephony/mbms/DownloadRequest;)V", "GetResetDownloadKnowledge_Landroid_telephony_mbms_DownloadRequest_Handler", ApiSince=28)>]
abstract member ResetDownloadKnowledge : Android.Telephony.Mbms.DownloadRequest -> unit
override this.ResetDownloadKnowledge : Android.Telephony.Mbms.DownloadRequest -> unit
Parameters
- downloadRequest
- DownloadRequest
The request to re-download files for.
- Attributes
Remarks
Resets the middleware's knowledge of previously-downloaded files in this download request.
Normally, the middleware keeps track of the hashes of downloaded files and won't re-download files whose server-reported hash matches one of the already-downloaded files. This means that if the file is accidentally deleted by the user or by the app, the middleware will not try to download it again. This method will reset the middleware's cache of hashes for the provided DownloadRequest
, so that previously downloaded content will be downloaded again when available. This will not interrupt in-progress downloads.
This is distinct from cancelling and re-issuing the download request -- if you cancel and re-issue, the middleware will not clear its cache of download state information.
If the middleware is not aware of the specified download request, an IllegalArgumentException
will be thrown.
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.