MbmsDownloadSession.RemoveProgressListener 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.
Un-register a listener previously registered via
#addProgressListener(DownloadRequest, Executor, DownloadProgressListener)
.
[Android.Runtime.Register("removeProgressListener", "(Landroid/telephony/mbms/DownloadRequest;Landroid/telephony/mbms/DownloadProgressListener;)V", "GetRemoveProgressListener_Landroid_telephony_mbms_DownloadRequest_Landroid_telephony_mbms_DownloadProgressListener_Handler", ApiSince=28)]
public virtual void RemoveProgressListener (Android.Telephony.Mbms.DownloadRequest request, Android.Telephony.Mbms.DownloadProgressListener listener);
[<Android.Runtime.Register("removeProgressListener", "(Landroid/telephony/mbms/DownloadRequest;Landroid/telephony/mbms/DownloadProgressListener;)V", "GetRemoveProgressListener_Landroid_telephony_mbms_DownloadRequest_Landroid_telephony_mbms_DownloadProgressListener_Handler", ApiSince=28)>]
abstract member RemoveProgressListener : Android.Telephony.Mbms.DownloadRequest * Android.Telephony.Mbms.DownloadProgressListener -> unit
override this.RemoveProgressListener : Android.Telephony.Mbms.DownloadRequest * Android.Telephony.Mbms.DownloadProgressListener -> unit
Parameters
- request
- DownloadRequest
The DownloadRequest
provided during registration
- listener
- DownloadProgressListener
The listener provided during registration.
- Attributes
Remarks
Un-register a listener previously registered via #addProgressListener(DownloadRequest, Executor, DownloadProgressListener)
. After this method is called, no further callbacks will be enqueued on the Handler
provided upon registration, even if this method throws an exception.
If the middleware is not aware of the specified download request, this method will throw an IllegalArgumentException
.
If the operation encountered an error, the error code will be delivered via MbmsDownloadSessionCallback#onError
.
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.