MbmsDownloadSession.AddStatusListener Method

Definition

Registers a download status listener for a DownloadRequest previously requested via #download(DownloadRequest).

[Android.Runtime.Register("addStatusListener", "(Landroid/telephony/mbms/DownloadRequest;Ljava/util/concurrent/Executor;Landroid/telephony/mbms/DownloadStatusListener;)V", "GetAddStatusListener_Landroid_telephony_mbms_DownloadRequest_Ljava_util_concurrent_Executor_Landroid_telephony_mbms_DownloadStatusListener_Handler", ApiSince=28)]
public virtual void AddStatusListener (Android.Telephony.Mbms.DownloadRequest request, Java.Util.Concurrent.IExecutor executor, Android.Telephony.Mbms.DownloadStatusListener listener);
[<Android.Runtime.Register("addStatusListener", "(Landroid/telephony/mbms/DownloadRequest;Ljava/util/concurrent/Executor;Landroid/telephony/mbms/DownloadStatusListener;)V", "GetAddStatusListener_Landroid_telephony_mbms_DownloadRequest_Ljava_util_concurrent_Executor_Landroid_telephony_mbms_DownloadStatusListener_Handler", ApiSince=28)>]
abstract member AddStatusListener : Android.Telephony.Mbms.DownloadRequest * Java.Util.Concurrent.IExecutor * Android.Telephony.Mbms.DownloadStatusListener -> unit
override this.AddStatusListener : Android.Telephony.Mbms.DownloadRequest * Java.Util.Concurrent.IExecutor * Android.Telephony.Mbms.DownloadStatusListener -> unit

Parameters

request
DownloadRequest

The DownloadRequest that you want updates on.

executor
IExecutor

The Executor on which calls to listener should be executed.

listener
DownloadStatusListener

The listener that should be called when the middleware has information to share on the status download.

Attributes

Remarks

Registers a download status listener for a DownloadRequest previously requested via #download(DownloadRequest). This callback will only be called as long as both this app and the middleware are both running -- if either one stops, no further calls on the provided DownloadStatusListener will be enqueued.

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.

Repeated calls to this method for the same DownloadRequest will replace the previously registered listener.

Java documentation for android.telephony.MbmsDownloadSession.addStatusListener(android.telephony.mbms.DownloadRequest, java.util.concurrent.Executor, android.telephony.mbms.DownloadStatusListener).

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