dismissPlayer

fun dismissPlayer(animated: Boolean = true, reason: String? = null, onCompletion: () -> Unit = {})

Dismisses the currently visible Storyteller player. For more information on this and other utility methods, see Additional SDK Methods.

Parameters

animated

Whether the dismissal should be animated. Defaults to true.

reason

Optional reason for dismissal, used for analytics.

onCompletion

Callback invoked after the player has been dismissed.