API Reference
The SDK is used to communicate between your game and the IndiePass client, which means that to function, the client must be started on your machine. You can use it for your game to use the features of the IndiePass platform.
Installation
Download
Download the SDK from the links provided in the downloads section and follow the instructions below to integrate it into your project.
Integration into your project
To use the SDK in your project, follow these steps:
- Download the version that corresponds to your project.
- Unzip the class and files into your project.
- Use IndiePassSDK to call methods.
Compatibility
- Supported operating systems: Windows 64bit
- Supported languages: C#, Java
Functions
| Function | Behavior | Parameters | Behavior in simul mode |
|---|---|---|---|
unlockAchievement | Unlocks an achievement for the player and record it. | string achievement | Unlocks an achievement but does not record it. |
deleteAchievement | Deletes an achievement for the player. | string achievement | |
setSimul | Activate simul mode. You have to disable this in production | bool isSimul | |
verifyCertificate | Checks if the player has the right to play (active subscription) - If the game is not launched from the client, returns false - If the game is launched from the client and the user does not have an active subscription: returns false - If the game is launched from the client and the user has an active subscription: returns true | int idGame, string publicKey | Checks if the player has the right to play (active subscription or game developer) -Returns true if the player has the right to play and if the client is running. -Returns false if the player does not have permission to play or if the client is not running. |