OfflineContentManagerListener

OfflineContentManagerListener

interface OfflineContentManagerListener

Functions

NameSummary
onCompletedabstract fun onCompleted(sourceConfig: SourceConfig, offlineContentOptions: OfflineContentOptions)
Is called when a OfflineContentManager.process call has completed successfully.
onDrmLicenseUpdatedabstract fun onDrmLicenseUpdated(sourceConfig: SourceConfig)
Is called when the DRM license was updated.
onErrorabstract fun onError(sourceConfig: SourceConfig, errorEvent: ErrorEvent)
Is called when an error occurs.
onOptionsAvailableabstract fun onOptionsAvailable(sourceConfig: SourceConfig, offlineContentOptions: OfflineContentOptions)
Is called after a OfflineContentManager.getOptions or when am OfflineOptionEntry has been updated during a OfflineContentManager.process call. If the OfflineContentManager.process is finished, OfflineContentManagerListener.onCompleted is called instead.
onProgressabstract fun onProgress(sourceConfig: SourceConfig, progress: Float)
Is called when the progress for a OfflineContentManager.process call changes.
onResumedabstract fun onResumed(sourceConfig: SourceConfig)
Is called when all actions have been resumed.
onSuspendedabstract fun onSuspended(sourceConfig: SourceConfig)
Is called when all actions have been suspended.