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
OfflineContentManagerto use a new remote asset URL for downloads. Affects completed, ongoing and future downloads.A
ContentUrlMigrationFinishedEventwill be emitted once the migration has finished or anOfflineErrorEventin case of any error.Calling this method when content is not downloaded affects future downloads and results in
ContentUrlMigrationFinishedEventbeing 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
remoteAssetUrlother than the currently downloading one is passed. Passing the sameremoteAssetUrlas 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
idparameter must be passed toOfflineManager.offlineContentManagerin order to enable this feature. Using it without may result in unexpected behavior.
OfflineContentManagerTweaksApi Protocol Reference