SRGAssetLoader
Creates an SRGAssetLoader instance using a DSL-style configuration.
Basic usage
val srgAssetLoader = SRGAssetLoader(context)
Content copied to clipboard
Custom configuration
val srgAssetLoader = SRGAssetLoader(context) {
mediaCompositionService(CustomMediaCompositionService())
}
Content copied to clipboard
Return
A SRGAssetLoader instance.
Parameters
context
The Android Context required for the asset loader.
block
A lambda that receives an SRGAssetLoaderConfig instance, allowing you to customize the loader's settings.