Generate UUID in case the user-defined nativeId
is empty.
Optional
config: OfflineContentConfigOptional
Readonly
configThe configuration object used to initialize this instance.
Flag indicating whether the native resources of this object have been disposed .i.e
destroy
has been called.
Flag indicating whether the native resources of this object have been created internally
.i.e initialize
has been called.
Readonly
nativeOptionally user-defined string id
for the native instance, or UUIDv4.
Adds a listener to the receive data from the native OfflineContentManagerListener
callbacks
Returns a function that removes this listener from the OfflineContentManager
that registered it.
Cancels and deletes the active download.
Deletes everything related to the related content ID.
Destroys the native OfflineManager
and releases all of its allocated resources.
Enqueues downloads according to the OfflineDownloadRequest
.
The promise will reject in the event of null or invalid request parameters.
The promise will reject when calling this method when download has already started or is completed.
The promise will resolve when the download has been queued. The download will is not finished when the promise resolves.
Downloads the offline license.
When finished successfully, data will be passed to the OfflineContentManagerListener.onDrmLicenseUpdated
.
Errors are transmitted to the OfflineContentManagerListener.onError
.
Loads the current OfflineContentOptions
.
When the options are loaded the data will be passed to the OfflineContentManagerListener.onOptionsAvailable
.
Allocates the native OfflineManager
instance and its resources natively.
Registers the DeviceEventEmitter
listener to receive data from the native OfflineContentManagerListener
callbacks
Renews the already downloaded DRM license.
When finished successfully data will be passed to the OfflineContentManagerListener.onDrmLicenseUpdated
.
Errors are transmitted to the OfflineContentManagerListener.onError
.
Resumes all suspended actions.
Gets the current state of the OfflineContentManager
Suspends all active actions.
Resolves how many bytes of storage are used by the offline content.
Provides the means to download and store sources locally that can be played back with a Player without an active network connection. An OfflineContentManager instance can be created via the constructor and will be idle until initialized.
Remarks
Platform: Android, iOS