Skip to main content

Send Bound Package (SendBindReward)

AndroidiOSWindows
If you are using the Unity engine, please refer to SendBindReward in the Unity SDK.

Send the first login reward package to the player. For details, see First Login Reward Package.

Function Definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static void SendBindReward(const FString eventId, const FString extraJson);

Parameter Instructions

ParametersTypeExplanation
eventIdFStringPackage Event ID
Phone: 10000
Email: 110001
extraJsonFStringGift extension fields for matching IDIP rules
More information can be found in 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 kMethodIDToolsSendBindReward.

Code Sample

UINTLSDKAPI::SendBindReward("110001", "{}");