Package com.castlabs.android.downloader

# Interface Downloadable

public interface Downloadable
Plugins can implement this interface to add new loadable resources to a download.

Since:
  4.0.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `DownloadableResource[]`
  `getResources(String remoteManifestUrl, File basePath, Bundle bundle)`
  Takes the URL to the remove manifest, the one that started the download, the base path to the target folder and the Bundle that was used to start the download.

- ## Method Details

  - ### getResources

    @Nullable DownloadableResource[] getResources(String remoteManifestUrl, File basePath, Bundle bundle)
    Takes the URL to the remove manifest, the one that started the download, the base path to the target folder and the Bundle that was used to start the download.

    Implementations can then return an array of `DownloadableResource`s that will be added to the download.

    This method is called on a background thread but during download preparation, so you can do network requests.

    Parameters:
      `remoteManifestUrl` - The URL to the manifest that started the download
      `basePath` - The base path to the target folder
      `bundle` - The bundle that initiated the download
    Returns:
      Array of resources that will be added to the download or null