Skip to main content
Presents an Encore offer sheet for the given placement ID. Returns a result indicating whether the user was granted an entitlement.

Signature

show(placementId: string): Promise<PlacementResult>

Parameters

NameTypeDescription
placementIdstringThe placement identifier configured in the Encore Dashboard

Returns

A PlacementResult object.

Usage

const result = await Encore.show('cancellation_flow');

if (result.status === 'granted') {
  // User accepted the offer
} else if (result.status === 'dismissed') {
  // User dismissed — proceed with original flow
}
Register onPurchaseRequest and onPassthrough handlers before calling show(). See onPurchaseRequest() and onPassthrough().