openSheet

fun openSheet(activity: AppCompatActivity, sheetId: String, onError: (StorytellerError) -> Unit)

Opens a Storyteller Sheet (a bottom sheet UI component) by its ID. For more information on this and other utility methods, see Additional SDK Methods.

Parameters

activity

The Activity from which to show the sheet.

sheetId

The ID of the Sheet to open.

onError

Callback invoked if an error occurs (e.g., sheet ID is blank or sheet not found).