Shared callbacks
The VIVEPORT SDK uses several callbacks for data exchange between functions.
StatusCallback
There are two callbacks which are inherited from the StatusCallback class, and used in the following APIs:
- Top Level
- Session Token
- Subscription
- Deeplink
- DLC
- Stats and Achievements
- Leaderboards
StatusCallback()
public delegate void StatusCallback(int nResult);
Name | Type | Description |
nResult | int | Result code |
See
Error codes
for possible outcomes of
nResult
.
StatusCallback2()
public delegate void StatusCallback2(int nResult, string message);
Name | Type | Description |
nResult | int | Result code |
message | string | Message |
See
Error codes
for possible outcomes of
nResult
.
message
is used for moving strings between APIs, and may carry data such as error messages and tokens.