openCollectionByExternalId

fun openCollectionByExternalId(activity: Activity, collectionId: String, externalId: String? = null, titleDrawable: Drawable? = null, onError: (StorytellerError) -> Unit = {})

Opens a collection of Clips by its ID, optionally starting with a Clip identified by its external ID. For more details on opening the Storyteller player, see the Opening the Player Documentation.

Parameters

activity

The Activity from which to open the Clips collection.

collectionId

The ID of the Clips collection to open.

externalId

Optional external ID of a specific Clip to start with within the collection.

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).