Skip to main content
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.