cancelDownload abstract method

Future<void> cancelDownload(
  1. String resourceID
)

Cancel download of music resource.

Available since: 3.11.0 Description: Cancel download of music resource. Use case: After starting to download music resources, use this interface to cancel the corresponding download task. When to call: After starting the download download. Caution: When a valid resourceID is passed in, only unfinished download tasks will be cancelled. When empty is passed in, all unfinished download tasks will be canceled.

  • resourceID the resource ID corresponding to the song or accompaniment.

Implementation

Future<void> cancelDownload(String resourceID);