open Collection
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.
open Reason
The reason for opening this Clips collection, used for analytics. Defaults to StorytellerClipsOpenReason.DEEPLINK.
title Drawable
Optional Drawable to be displayed as a title/logo in the Clips player.
on Error
Callback invoked if an error occurs (e.g., collection or Clip not found).