openStory

fun openStory(activity: Activity, storyId: String? = null, openedReason: Storyteller.StorytellerStoriesOpenReason = StorytellerStoriesOpenReason.INSTANCE_METHOD, onError: (StorytellerError) -> Unit = {})

Opens a specific Story by its ID.

Parameters

activity

The Activity from which to open the Story.

storyId

The ID of the Story to open. If null or invalid, an error may occur.

openedReason

The reason for opening this Story, used for analytics.

onError

Callback invoked if an error occurs (e.g., Story not found).