setDownloadPath

open fun setDownloadPath(downloadPath: File)

Sets the base path that must be used to store new offline video requests. Changing the location will not change location of any downloads that are either currently being downloaded or have been downloaded already.

Please note that by default the AbstractOfflineCatalog uses a secure location on the host device that is accessible only by the host application and will be cleaned automatically, if the host application is uninstalled. If you change this path, the you will be responsible ensure it is secure and will be cleaned automatically

Though Android OS will make an attempt to clean the download media placed this folder, the Android OS does not guarantee that will be in fact clean all the files.

Parameters

downloadPath

the download path. Must be a file URI to a path on external storage, and the calling application must have the WRITE_EXTERNAL_STORAGE permission.

See also

Throws

when the download path is not valid.


open fun setDownloadPath(downloadFileCreator: DownloadFileCreator)

Sets the DownloadFileCreator to retrieve the base path that must be used to store new offline video requests. Changing the location will not change location of any downloads that are either currently being downloaded or have been downloaded already.

By default a ExternalFileCreator is created when calling the default constructor

Parameters

downloadFileCreator

See also

Throws

when the download path is not valid.