Present the funnel a placement serves — natively, the way the funnel's
editor settings say (full screen, modal or sheet) — and resolve when it
ends. The placement is resolved first (instantly after
preloadPlacement); nothing is presented when it serves no funnel.
The SDK performs purchases and restores itself unless you pass
onPurchase / onRestore, and closes after a successful one when the
funnel is set to "Close after purchase". Only one funnel is presented at
a time: a second call while one is up resolves unavailable with reason
alreadyPresented.
A funnel with a photo check calls onCheck and waits for its answer, up
to the check's timeout; the photos the visitor gave come back in
photos — call releasePhoto with each once you are done with it.
Present the funnel a placement serves — natively, the way the funnel's editor settings say (full screen, modal or sheet) — and resolve when it ends. The placement is resolved first (instantly after
preloadPlacement); nothing is presented when it serves no funnel.The SDK performs purchases and restores itself unless you pass
onPurchase/onRestore, and closes after a successful one when the funnel is set to "Close after purchase". Only one funnel is presented at a time: a second call while one is up resolvesunavailablewith reasonalreadyPresented.A funnel with a photo check calls
onCheckand waits for its answer, up to the check's timeout; the photos the visitor gave come back inphotos— callreleasePhotowith each once you are done with it.