OfflineContentManagerTweaksApi

This API is used as an incubator for experimental features. Tweaks are not officially supported and are not guaranteed to be stable, i.e. their naming, functionality and API can change at any time within the tweaks or when being promoted to an official feature and moved into its final configuration namespace.

  • Migrates OfflineContentManager to use a new remote asset URL for downloads. Affects completed, ongoing and future downloads.

    A ContentUrlMigrationFinishedEvent will be emitted once the migration has finished or an OfflineErrorEvent in case of any error.

    Calling this method when content is not downloaded affects future downloads and results in ContentUrlMigrationFinishedEvent being emitted.

    Resuming download after migration will continue using the new remote asset URL. In case the download is in-progress at the time this method is called, it will be suspended. Suspension just happens if a remoteAssetUrl other than the currently downloading one is passed. Passing the same remoteAssetUrl as the one which is currently used, does not have any effect. Suspended downloads have to be resumed explicitly.

    Subsequent downloads will use the URL provided here.

    Note

    id parameter must be passed to OfflineManager.offlineContentManager in order to enable this feature. Using it without may result in unexpected behavior.