openStoryByExternalId

fun openStoryByExternalId(context: Activity, externalId: String? = null, openedReason: Storyteller.StorytellerStoriesOpenReason = StorytellerStoriesOpenReason.INSTANCE_METHOD, onError: (StorytellerError) -> Unit = {})

Opens a Story by its external ID. External IDs are alternative identifiers that can be assigned to Stories in the Storyteller CMS.

Parameters

context

The Activity from which to open the Story.

externalId

The external ID of the Story to open.

openedReason

The reason for opening this Story, used for analytics.

onError

Callback invoked if an error occurs (e.g., Story with the external ID not found).