PaywallMessageHandler

class PaywallMessageHandler(factory: VariablesFactory, options: OptionsFactory, track: suspend (TrackableSuperwallEvent) -> Unit, setAttributes: (Map<String, Any>) -> Unit, getView: () -> PaywallView?, mainScope: MainScope, ioScope: CoroutineScope, json: Json = Json { encodeDefaults = true }, encodeToB64: (String) -> String, userPermissions: UserPermissions, getActivity: () -> Activity?, customCallbackRegistry: CustomCallbackRegistry) : SendPaywallMessages(source)

Constructors

Link copied to clipboard
constructor(factory: VariablesFactory, options: OptionsFactory, track: suspend (TrackableSuperwallEvent) -> Unit, setAttributes: (Map<String, Any>) -> Unit, getView: () -> PaywallView?, mainScope: MainScope, ioScope: CoroutineScope, json: Json = Json { encodeDefaults = true }, encodeToB64: (String) -> String, userPermissions: UserPermissions, getActivity: () -> Activity?, customCallbackRegistry: CustomCallbackRegistry)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun getState(): Map<String, Any>

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

Link copied to clipboard
open override fun handle(message: PaywallMessage)
Link copied to clipboard
fun postMessage(message: String)