openPage

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

Opens a specific Page within a Story by its ID.

Parameters

activity

The Activity from which to open the Page.

pageId

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

openedReason

The reason for opening this Page, used for analytics.

onError

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