Send Bound Package (SendBindReward)
AndroidiOSPC
If you are using Unreal Engine, please refer to SendBindReward in the Unreal Engine SDK.
Send the first login reward package to the player. For details, see First Login Package.
Function definition
public static void SendBindReward(string event_id, string extraJson = "{}");
Parameter Instructions
| Parameters | Type | Explanation |
|---|---|---|
| event_id | string | Package Event ID Phone: 10000 Email: 110001 |
| extraJson | string | Package extension field used to match IDIP rules For more information, see Extra Parameter JSON String. |
Extra Parameters JSON String
The extension field of the package must match IDIP rules, formatted as:
{
"area_id":xx, //int type
"role_id":"xx", //string type
"plat_id":xx, //int type
"zone_id":xx //int type
}
Observers
The callback handling interface is BindRewardResultObserver.The callback data structure is BindRewardResult.
The callback ID is INTL_TOOLS_SEND_BINDREWARD.
Code Sample
LevelInfinite.SendBindReward("110001", "{}");