LogoLogo
  • 🕴️ QUICK START GUIDE
  • DASHBOARD
    • Management
      • Add a new Game
        • Create a Game
        • Set-Up
        • Review Guidelines
      • Version control
        • Add a Build
        • Handle branches
        • Upgrade Versions
      • API Keys
    • NFT Collections
      • Add a Collection
      • Staking Support
    • Beta Codes
      • Create a Beta Code
    • Tournaments
      • Set Up
      • Create Tournament
    • In-App Purchases
      • Developer
        • Set up your Store
        • Submit Product
        • Client Integration
        • Handle Post-Payments
      • Payment Gateways
      • Review Guidelines
    • Elixir Invisible Wallet
      • Gas Manager
        • Create Gas Manager
        • Handle Balances
    • Reward Center
      • Game Quests
        • Add a Stat
        • Create a Quest
        • Test Your Quest
        • Submit your Quest
        • Update Progress
        • Review Guidelines
  • Elixir Gamer Services
    • 🏁Kick-off
    • Unity
      • Getting Started
        • Overview
        • Updates
          • GitHub
          • Unity Asset Store (Coming Soon)
      • Overlay
        • Overlay Actions
        • Event Simulator
          • SDK Events
      • Authentication
        • Desktop
        • Mobile
      • Reference
    • Unreal Engine
      • Getting Started
        • C++ Project
        • Blueprints Project
  • API
    • Elixir REST API
      • 🖥️Desktop Auth
      • 📱Mobile Auth
      • 🔐RSA Signature
        • 🔢C# Example
        • 🔢Node.js Example
      • 🧔User
      • 👾NFTs
      • 🏆Tournaments API
      • ❓Game Quests
    • How To
      • Link Elixir account to a game API account
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Elixir Gamer Services
  2. Unity
  3. Overlay
  4. Event Simulator

SDK Events

PreviousEvent SimulatorNextAuthentication

Last updated 9 months ago

Was this helpful?

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 request.

OnGetWalletResult

Notifies the game of a result to the 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:

Status
Description

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 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:

Status
Description

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.

Checkout()
GetWallet
SignTypedData