Media Encoder2027
Object

Paywall

Scripting surface for the in-product paywall. Dispatches EVENT_PURCHASE_COMPLETED when a credit purchase completes so an extension can refresh credit-dependent UI.

Events

NameDescription
Dispatched on a Paywall object when a paywall purchase completes so an extension can refresh credit-dependent UI such as a buy-credits banner.

Methods

static → Varies

static → Varies

static → Paywall

Get a Paywall event target. Call subscribeToEvent(Paywall.EVENT_PURCHASE_COMPLETED) then add a listener for it.

static → Varies

static → Boolean

Open the account menu showing the user's generative credit balance. Returns true if the request was dispatched false if no account menu is available; the result does not confirm the menu opened.

→ Boolean

Propagates the given event on this object.

eventKey String

Return 1

Methods that return a Paywall.