MbmsDownloadSession.RemoveStatusListener 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
#addStatusListener(DownloadRequest, Executor, DownloadStatusListener)
.
[Android.Runtime.Register("removeStatusListener", "(Landroid/telephony/mbms/DownloadRequest;Landroid/telephony/mbms/DownloadStatusListener;)V", "GetRemoveStatusListener_Landroid_telephony_mbms_DownloadRequest_Landroid_telephony_mbms_DownloadStatusListener_Handler", ApiSince=28)]
public virtual void RemoveStatusListener (Android.Telephony.Mbms.DownloadRequest request, Android.Telephony.Mbms.DownloadStatusListener listener);
[<Android.Runtime.Register("removeStatusListener", "(Landroid/telephony/mbms/DownloadRequest;Landroid/telephony/mbms/DownloadStatusListener;)V", "GetRemoveStatusListener_Landroid_telephony_mbms_DownloadRequest_Landroid_telephony_mbms_DownloadStatusListener_Handler", ApiSince=28)>]
abstract member RemoveStatusListener : Android.Telephony.Mbms.DownloadRequest * Android.Telephony.Mbms.DownloadStatusListener -> unit
override this.RemoveStatusListener : Android.Telephony.Mbms.DownloadRequest * Android.Telephony.Mbms.DownloadStatusListener -> unit
Parameters
- request
- DownloadRequest
The DownloadRequest
provided during registration
- listener
- DownloadStatusListener
The listener provided during registration.
- Attributes
Remarks
Un-register a listener previously registered via #addStatusListener(DownloadRequest, Executor, DownloadStatusListener)
. After this method is called, no further calls will be enqueued on the Executor
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.