MbmsDownloadSession.AddProgressListener Method

Definition

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

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

Parameters

request
DownloadRequest

The DownloadRequest that you want updates on.

executor
IExecutor

The Executor on which calls to listener should be executed.

listener
DownloadProgressListener

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

Attributes

Remarks

Registers a progress listener for a DownloadRequest previously requested via #download(DownloadRequest). This listener 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 DownloadProgressListener 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.addProgressListener(android.telephony.mbms.DownloadRequest, java.util.concurrent.Executor, android.telephony.mbms.DownloadProgressListener).

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