Overview & Getting Started
Welcome to Haxelo SDK documentation, this will guide you to quickly integrate and utilize the SDK functionalities within your games.
Basics
Lets get started
Haxelo SDK Methods
In the project, there is sample initialization script that will show you how you can initilize Haxelo Session and use all of the methods.
Initialize Method
Haxelo.Initialize(UserData data, bool userConsent)
Initializes the Haxelo SDK with user data and consent preferences.
- Parameters:
UserData
data
– Contains user demographic information:string
gender
– Can be"Male"
,"Female"
,"Non-binary"
, or empty.int
age
– Any numeric value or empty.
bool
IAP Status
– Indicates whether the user has made an in-app purchase in your game.
Camera Configuration
Haxelo.setTargetCamera(Camera object)
Sets the camera that user is looking with at given moment .
- Use case Required for proper measurement for impressions Haxelo.
- Parameters:
Camera object
– The main game camera.
Event Listeners
Haxelo provides event listeners for various interactions.
onMagnifierOpen Event
Haxelo.onMagnifierOpen
Triggered when the magnifier opens.
- Use Case This can be used to pause the game when the magnifier opens to prevent gameplay distractions.
onMagnifierClose Event
Haxelo.onMagnifierClose
Triggered when the magnifier closes.
- Use case This can be used to resume gameplay after the player finishes using the magnifier.
onLinkClick Event
Haxelo.onLinkClick
Triggered when a user clicks on an in-game ad link.
- Use case This can be used to reward users when they interact with ad units, making ad engagement more valuable.