ResourceIdentifierCallback

A callback used to provide an identifier for a resource located at a given URL. Resource in this case refers to all downloaded objects of the source, including e.g. the manifest or segments. The returned identifier has to be unique within the current source and must not change throughout the lifecycle of the downloaded content.

This callback can be provided to OfflineContentManager.getOfflineContentManager to ensure resources stay available even if the URL of the asset and URLs within the manifest of the asset change. If no callback is provided, the URLs must not change during the lifecycle of a downloaded asset.

Functions

Link copied to clipboard
abstract fun resolveIdentifier(url: String): String