Skip to main content
The value returned by await Encore.placement(_:).show(). It is the complete factual record of the presentation: either nothing appeared (and why), or the interaction ran and the record carries what happened on each independent axis. .presented means the interaction ran: the offer sheet, or on IAP-first variants the purchase sheet that stands in for it. show() never throws; errors are values on the result.

Definition

Outcome’s fields are independent axes. .notAttempted is a real value (“funnel open, nothing entered it”), never nil. A claim and a purchase are not rival cases: a flow where the user claims an offer and then completes a purchase records both, side by side.

NotPresentedReason

AdvertiserOutcome

How far Encore’s claim funnel got. The claim is staged the same way in both unlock modes, but .verified is only reachable under unlock: .strict, where an in-session verification poll upgrades the staged .claimed. In .optimistic the advertiser axis stops at .claimed.

ClaimedOffer

The transactionId is the join key to a later .strictUnlockVerified event on outcomes. userConfirmedCompletion is true only when the placement passed a prize, the user said they finished the offer, and Encore’s server granted the prize: the first Yes per user per offer, within your daily limit, for a user your app identified. It is still the user’s word: Encore books no transaction or payout for it, and it never changes the stage (.claimed, or .verified in strict mode). It stays false in an app set to pay only when the brand confirms; credit those prizes from the offer_completed webhook. See Reward for Trying. claimURL (2.5.0+) is the exact link the user opened for this claim: the offer’s link with this claim’s transaction id in it. Store it to send the user back to an offer they did not finish. It is nil for demo offers (all a pk_test_ key gets), for links that are not http or https, for links with no transaction id slot (such as Amazon offers, which credit your app rather than one user), and for a claim with no server transaction: on iOS a claim can have a transactionId and still no link. The link carries the user’s transaction id, so whoever opens it completes the offer as this user. Keep it out of logs, analytics and third-party tools; the SDK prints it as <redacted> when it describes a ClaimedOffer. See Finish-Later Links.

PublisherOutcome

What your EncorePurchaseController reported back.

DismissReason

How the sheet went away. See DismissReason for the full vocabulary (.userTappedClose, .userSwipedDown, .flowCompleted, .interrupted, and more).

Fact readers

The record carries raw facts only; there is no SDK-computed “unlocked” verdict. What a claim means is a property of the flow that served it (some flows grant on claim, some gate on verification, some grant nothing), so the SDK reports what happened and your integration decides.

Usage

The dominant pattern branches on the facts:
When the mechanism matters (analytics, debugging), switch on the record:
Branch this flow on the record itself. isActive and isActivePublisher are the durable entitlement state for gating UI elsewhere in your app, long after a presentation ends; they are not the check for what just happened here. Use result.advertiser directly to distinguish an unverified .claimed from a .verified one.
  • DismissReason, the dismissal axis of the record.
  • Errors, the EncoreError values carried by .notPresented(.error(...)) and AdvertiserOutcome.failed.
  • outcomes, the passive stream every resolution also lands on.