Skip to main content

Set Additional Gift Pack Info ExtraJson (SetRewardExtraJson)

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

When entering the lobby with a character already created, first call the SetRewardExtraJson interface, then call the SendBindReward interface.The SDK internally determines whether the player can claim the gift pack.

For details on binding package and first login package, see Package Configuration.

Function Definition

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

Input Parameters

ParametersTypeExplanation
extraJsonFStringGift package extension field used to match IDIP rules
For more information, see SendBindReward API Extra Parameters JSON String.

Code sample

UINTLSDKAPI::SetRewardExtraJson("{}");