SDK Events

The currently available events are:

OnOpenStateChange

Signals to the game that the overlay was either opened or closed. This is useful if you want to pause the game while the overlay is open.

OnCheckoutResult

Please note there can only be one checkout event happening at the time: Calling a new event will cancel the previous one. So the game should keep track of the latest SKU (product) involved in the checkout.

Notifies the game when a checkout has either been completed successfully or failed. This would normally be sent by the overlay after the game has initiated a Checkout() request.

OnGetWalletResult

Notifies the game of a result to the GetWallet action. This event delegate has the following signature:

public delegate void OnGetWalletResultDelegate(
    string status, string ethAddress, string solAddress, string eosAddress
);

The following status values can be returned:

StatusDescription

SUCCESS

Successful execution

USER_REQUEST_DENIED

SDK has been initialized with an invalid user email.

SOMETHING_WENT_WRONG

An system error occurred. Please get in touch with us if you continue seeing this error.

OnSignTypedDataResult

Notifies the game of a result to the SignTypedData action. This event's delegate has the following signature:

public delegate void OnSignTypedDataResultDelegate(
    string status, string signature, string r, string s, string v
);

The following status values can be returned:

StatusDescription

SUCCESS

Successful execution

USER_REQUEST_DENIED

SDK has been initialized with an invalid user email.

SOMETHING_WENT_WRONG

An system error occurred. Please get in touch with us if you continue seeing this error.

Last updated