Skip to content

Downloads and offline playback series

Listing downloaded assets

The DownloadedPlayable type represents an offline playable ready for playback.

To list the downloaded asset available for playback, use IEnigmaDownload#getDownloadedAssets.

IEnigmaDownload enigmaDownload = new EnigmaDownload(businessUnit);
enigmaDownload.getDownloadedAssets(new BaseResultHandler<List<DownloadedPlayable>>() {
    @Override
    public void onResult(List<DownloadedPlayable> result) {
        for(DownloadedPlayable playable : result) {
            // ... create UI for playable ... //
        }
    }

    @Override
    public void onError(EnigmaError error) {
        // ... handle error ... //
    }
}, handler);


Table of Contents
Prerequisites
Gradle dependencies
Check if an asset is downloadable
Using the download API
Get available tracks for download
Start asset download
Managing ongoing downloads
• Listing downloaded assets (current)
Start playback of a downloaded asset
Remove downloaded assets
Downloads app