getState

suspend fun getState(): Map<String, Any>(source)

Gets the current state from the paywall webview by evaluating JavaScript.

Return

A map containing the paywall state, or an empty map if evaluation fails.