ReportBinary [Player Network SDK Only]
caution
Games cannot report sensitive information such as personal data.
[Player Network SDK Only] Reports binary files.
Supported channel: INTL
Supported Platform
- 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
Parameter | Type | Description |
---|---|---|
eventName | string | Event |
data | string | Binary data |
length | int | Data length |
specificChannel | string | The specified channel to report. 1. If there is no specified channel, enter an empty string. The event is reported to default channels configured in INTLConfig.ini. For more information, see Integration Guide. 2. If there is one specified channel, enter the channel, for example, "Facebook". 3. If there are multiple specified channels, separate them with commas “,”. For example, "Facebook,Firebase". |
Parameter | Type | Description |
---|---|---|
event_name | char | Event |
data | char | Binary data |
len | int | Data length |
specific_channel | std::string | The specified channel to report. 1. If there is no specified channel, enter an empty string. The event is reported to default channels configured in INTLConfig.ini. For more information, see Integration Guide. 2. If there is one specified channel, enter the channel, for example, "Facebook". 3. If there are multiple specified channels, separate them with commas “,”. For example, "Facebook,Firebase". |
Code Sample
- 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, "");