openCollection

fun openCollection(activity: Activity, configuration: Storyteller.StorytellerClipCollectionConfiguration, openReason: Storyteller.StorytellerClipsOpenReason = StorytellerClipsOpenReason.DEEPLINK, titleDrawable: Drawable? = null, onError: (StorytellerError) -> Unit = {})

Opens a collection of Clips using a StorytellerClipCollectionConfiguration. This allows specifying the collection ID, an optional category ID, and an optional starting Clip ID.

Parameters

activity

The Activity from which to open the Clips collection.

configuration

The StorytellerClipCollectionConfiguration defining what to open.

openReason

The reason for opening this Clips collection, used for analytics. Defaults to StorytellerClipsOpenReason.DEEPLINK.

titleDrawable

Optional Drawable to be displayed as a title/logo in the Clips player.

onError

Callback invoked if an error occurs (e.g., collection or Clip not found).