getPresentationResult

suspend fun Superwall.getPresentationResult(placement: String, params: Map<String, Any>? = null): Result<PresentationResult>(source)

Preemptively gets the result of registering an event.

This helps you determine whether a particular event will present a paywall in the future.

Note that this method does not present a paywall. To do that, use register(placement:params:handler:feature:).

Return

A PresentationResult that indicates the result of registering an event.

Parameters

placement

The name of the event you want to register.

params

Optional parameters you'd like to pass with your event.