Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.encorekit.com/llms.txt

Use this file to discover all available pages before exploring further.

Represents the result of showing an offer to a user. The result indicates whether the user was granted an entitlement or not, with detailed reasons.

Definition

public enum EncorePresentationResult {
  case granted(entitlement: Entitlement)
  case notGranted(reason: NotGrantedReason)
}

Cases

CaseAssociated ValueDescription
.grantedEntitlementUser accepted an offer and received an entitlement
.notGrantedNotGrantedReasonEntitlement not granted (user declined or system reason)
This type is primarily used internally. The fluent API exposes separate onGranted and onNotGranted callbacks for better ergonomics.