Offline Manager Methods
maxParallelDownloads
The maximum number of parallel downloads
- Kotlin
- Swift
Returns: Int
//Get
val maxParallelDownloads = offlineManager?.maxParallelDownloads
//Set
offlineManager?.maxParallelDownloads = 3
Returns: Int
//Get
val maxParallelDownloads = offlineManager?.maxParallelDownloads
//Set
offlineManager?.maxParallelDownloads = 3
setRequirements
Setting the requirements for downloads to progress
- Kotlin
- Swift
Params: LuraDownloadRequirement
offlineManager?.setRequirements(requirements: LuraDownloadRequirement)
Params: LuraDownloadRequirement
offlineManager?.setRequirements(requirements: LuraDownloadRequirement)
getRequirements
Getting the requirements for downloads to progress
- Kotlin
- Swift
Returns: LuraDownloadRequirement
val requirements = offlineManager?.getRequirements()
Returns: LuraDownloadRequirement
let requirements: LuraDownloadRequirement = offlineManager?.getRequirements()
download
Add an asset for download
- Kotlin
- Swift
Params: LuraConfiguration
offlineManager?.download(config: LuraConfiguration)
Params: LuraPlayerConfiguration
offlineManager?.download(config: LuraPlayerConfiguration)
pause
Pause downloading the asset
- Kotlin
- Swift
Params: LuraConfiguration
offlineManager?.pause(config: LuraConfiguration)
Params: LuraPlayerConfiguration
offlineManager?.pause(config: LuraPlayerConfiguration)
pauseAll()
Pause all downloading
- Kotlin
- Swift
offlineManager?.pauseAll()
offlineManager?.pauseAll()
resume
Resume downloading the asset
- Kotlin
- Swift
Params: LuraConfiguration
offlineManager?.resume(config: LuraConfiguration)
Params: LuraPlayerConfiguration
offlineManager?.resume(config: LuraPlayerConfiguration)
resumeAll()
Resume all downloading
- Kotlin
- Swift
offlineManager?.resumeAll()
offlineManager?.resumeAll()
remove
Remove downloading
- Kotlin
- Swift
Params: LuraConfiguration
offlineManager?.remove(config: LuraConfiguration)
Params: LuraPlayerConfiguration
offlineManager?.remove(config: LuraPlayerConfiguration)
removeAll()
Remove all downloading
- Kotlin
- Swift
offlineManager?.removeAll()
offlineManager?.removeAll()
getVideo
Get offline video object for lura configuration
- Kotlin
- Swift
Params: LuraConfiguration
Returns: LuraOfflineVideo
offlineManager?.getVideo(config: LuraConfiguration)
Params: LuraPlayerConfiguration
Returns: LuraOfflineVideo
let video: LuraOfflineVideo = offlineManager?.getVideo(config: LuraPlayerConfiguration)
getVideos
Get all offline video objects
- Kotlin
- Swift
Returns: List\<LuraOfflineVideo
>
offlineManager?.getVideos()
Returns: ArrayLuraOfflineVideo
let videos : [LuraOfflineVideo] = offlineManager?.getVideos()
addListener
Add listener to handle downloading states
- Kotlin
- Swift
Params: LuraOfflineEventListener
offlineManager?.addListener(listener: LuraOfflineEventListener)
Params: LuraOfflineEventListener
Returns:String
let listenerId: String = offlineManager?.addListener(listener: LuraOfflineEventListener)
removeListener
Remove listener to handle downloading states
- Kotlin
- Swift
Params: LuraOfflineEventListener
offlineManager?.removeListener(listener: LuraOfflineEventListener)
Params: String
offlineManager?.removeListener(listenerId: String)
updateLicense
Update DRM license for lura configuration
- Kotlin
- Swift
Params: LuraConfiguration
offlineManager?.updateLicense(config: LuraConfiguration)
Params: LuraPlayerConfiguration
offlineManager?.updateLicense(config: LuraPlayerConfiguration)