Binary Reporting (ReportBinary) [Player Network SDK only]
caution
Games must not report sensitive information such as personal data.
[Player Network SDK only] Report a binary file.
Supported channel: INTL
Supported Platforms
- Unity
- Unreal Engine
Supports
Android, iOS, Windows platform.Supports
Android, iOS, Windows platform.Function Definition
- Unity
- Unreal Engine
void ReportBinary(
string eventName,
string data,
int length,
string specificChannel);
static void ReportBinary(
const char *event_name,
const char *data,
int len,
const std::string &specific_channel = "");
Input Parameters
- Unity
- Unreal Engine
| Parameters | Type | Description |
|---|---|---|
| eventName | string | Event |
| data | string | Binary data |
| length | int | Length of data |
| specificChannel | string | Specify channel 1. If there is no fillable string, an empty string will report the initialized channel by default, which is the channel configured for reporting in INTLConfig.ini, see Integration Guide. 2. Specify reporting to a certain channel, such as "Facebook". 3. Specify reporting to multiple channels, separated by English comma ',', e.g., "Facebook,Firebase". |
| Parameters | Type | Description |
|---|---|---|
| event_name | char | Event |
| data | char | Binary data |
| len | int | Length of data |
| specific_channel | std::string | Specify channel 1. If there is no fillable string, an empty string will report the initialized channel by default, which is the channel configured for reporting in INTLConfig.ini, see Integration Guide. 2. Specify reporting to a certain channel, such as "Facebook". 3. Specify reporting to multiple channels, separated by English comma ',', e.g., "Facebook,Firebase". |
Code Example
- Unity
- Unreal Engine
string data = ReadFile("fileName");
UnionAdapterAPI.GetReportService().ReportBinary("INTL_BINARY_TEST", data, data.Length, "");
int64 Length = 100;
GUA_NAMESPACE::GUAReportService::ReportBinary("INTL_BINARY_TEST", "data", Length, "");