doPayout

Pays out the user's collected rewards.

When finished, the PlaytimePayoutListener's onPayoutExecuted or onPayoutError methods will be called, according to the result of the payout. An argument rewards is passed to onPayoutExecuted, holding the amount of paid out rewards.

Note: each reward can only be paid out once!

Parameters

context

A context.

listener

A listener to notify you about the result of the payout. (see .init).


Pays out the user's collected rewards.

When finished, the PlaytimePayoutListener's onPayoutExecuted or onPayoutError methods will be called, according to the result of the payout. An argument rewards is passed to onPayoutExecuted, holding the amount of paid out rewards.

Note: each reward can only be paid out once!

Parameters

ctx

A context.

params

The PlaytimeParams that holds the user acquisition (UA) paramaters and placement (optional).

listener

A listener to notify you about the result of the payout. (see .init).