cancelVideoDownload

open fun cancelVideoDownload(video: Video): Boolean

Cancels a video download that has not been completed yet. Operations to cancel the video download will block the UI thread. For asynchronous version use cancelVideoDownload. If the video has been downloaded already, then calling this method will have no effect. Please call deleteVideo method instead to delete the video.

Return

true if the download was found in the download queue and removed, otherwise false.

Parameters

video

the video to be cancelled.

See also


open fun cancelVideoDownload(video: Video, callback: OfflineCallback<Boolean>)

Asynchronously cancels a video download that has not been completed yet. If the video has been downloaded already, then calling this method will have no effect. Please call deleteVideo method instead to delete the video.

Parameters

video

The video to be cancelled.

callback

Provides the result of the operation. In case the download of the requested video has been canceled successfully, onSuccess will be called to provide a Boolean with its value as 'true' if the download was found in the download queue and removed, otherwise 'false'. onFailure will be called in case there was an error.


open fun cancelVideoDownload(videoId: String): Boolean

Cancels a video download that has not been completed yet. Operations to cancel the video download will block the UI thread. For asynchronous version use cancelVideoDownload. If the video has been downloaded already, then calling this method will have no effect. Please call deleteVideo method instead to delete the video.

Return

true if the download was found in the download queue and removed, otherwise false.

Parameters

videoId

the video id.

See also


open fun cancelVideoDownload(videoId: String, callback: OfflineCallback<Boolean>)

Asynchronously cancels a video download that has not been completed yet. If the video has been downloaded already, then calling this method will have no effect. Please call deleteVideo method instead to delete the video.

Parameters

videoId

The id of the video to be cancelled.

callback

Provides the result of the operation. In case the download of the requested video has been canceled successfully, onSuccess will be called to provide a Boolean with its value as 'true' if the download was found in the download queue and removed, otherwise 'false'. onFailure will be called in case there was an error.