Batch's User module. Setting custom user data and tracking events happen here.
More...
|
string | InstallationId [get] |
| Get the unique installation ID, generated by Batch. Note: If the SDK isn't started, this method can return null. More...
|
|
Batch's User module. Setting custom user data and tracking events happen here.
string BatchSDK.User.User.DumpDebugUserData |
( |
| ) |
|
Dump a debug string for the user data we currently The format can change at any time without warning, so please DO NOT rely on this string for anything.
Can be null if Batch isn't started.
- Returns
- Custom data/attributes in string format
Editor BatchSDK.User.User.GetEditor |
( |
| ) |
|
Get the user data editor. Batch must be started to save it.
- Returns
- A new Editor instance
void BatchSDK.User.User.TrackEvent |
( |
string |
name | ) |
|
Track an event.
Batch must be started or this method will do nothing.
- Parameters
-
name | Event name. Cannot be null. Must be a string made of letters, numbers or underscores ([a-z0-9_]) and can't be longer than 30 characters |
void BatchSDK.User.User.TrackEvent |
( |
string |
name, |
|
|
string |
label |
|
) |
| |
Track an event.
Batch must be started or this method will do nothing.
- Parameters
-
name | Event name. Cannot be null. Must be a string made of letters, numbers or underscores ([a-z0-9_]) and can't be longer than 30 characters |
label | Event label. Can be null or any string you want |
void BatchSDK.User.User.TrackEvent |
( |
string |
name, |
|
|
string |
label, |
|
|
Windows.Data.Json.JsonObject |
data |
|
) |
| |
Track an event.
Batch must be started or this method will do nothing.
- Parameters
-
name | Event name. Cannot be null. Must be a string made of letters, numbers or underscores ([a-z0-9_]) and can't be longer than 30 characters |
label | Event label. Can be null or any string you want |
data | Event data. Must be a valid Windows.Data.Json.JsonObject or null |
void BatchSDK.User.User.TrackTransaction |
( |
double |
amount | ) |
|
Track a transaction.
Batch must be started or this method will do nothing.
- Parameters
-
void BatchSDK.User.User.TrackTransaction |
( |
double |
amount, |
|
|
Windows.Data.Json.JsonObject |
data |
|
) |
| |
Track a transaction.
Batch must be started or this method will do nothing.
- Parameters
-
amount | Transaction amount |
data | Transaction data. Must be a valid Windows.Data.Json.JsonObject or null |
string BatchSDK.User.User.InstallationId |
|
get |
Get the unique installation ID, generated by Batch. Note: If the SDK isn't started, this method can return null.