The listener that can be passed to the OfflineContentManager to receive callbacks for different events.

Platform

Android, iOS

interface OfflineContentManagerListener {
    onCanceled?: ((e) => void);
    onCompleted?: ((e) => void);
    onDrmLicenseExpired?: ((e) => void);
    onDrmLicenseUpdated?: ((e) => void);
    onError?: ((e) => void);
    onOptionsAvailable?: ((e) => void);
    onProgress?: ((e) => void);
    onResumed?: ((e) => void);
    onSuspended?: ((e) => void);
}

Properties

onCanceled?: ((e) => void)

Emitted when the download of the media content was canceled by the user and all partially downloaded content has been deleted from disk.

Type declaration

    • (e): void
    • Parameters

      Returns void

onCompleted?: ((e) => void)

Emitted when the download process has completed.

Type declaration

    • (e): void
    • Parameters

      Returns void

onDrmLicenseExpired?: ((e) => void)

Emitted when the DRM license has expired.

Type declaration

onDrmLicenseUpdated?: ((e) => void)

Emitted when the DRM license was updated.

Type declaration

onError?: ((e) => void)

Emitted when an error has occurred.

Type declaration

    • (e): void
    • Parameters

      Returns void

onOptionsAvailable?: ((e) => void)

Emitted when the OfflineContentOptions is available after a OfflineContentManager.getOptions call.

Type declaration

onProgress?: ((e) => void)

Emitted when there is a progress change for the process call.

Type declaration

    • (e): void
    • Parameters

      Returns void

onResumed?: ((e) => void)

Emitted when all actions have been resumed.

Type declaration

    • (e): void
    • Parameters

      Returns void

onSuspended?: ((e) => void)

Emitted when all active actions have been suspended.

Type declaration

    • (e): void
    • Parameters

      Returns void