BindRewardResultObserver
Registers the callback of LI PASS reward event, the game needs to process the callback function. When calling reward related APIs, the callback is triggered. For more information on the callback data structure, see BindRewardResult.
note
It is strongly recommended to perform registration in the startup function of the game application.
Function definition
C++ event handling
//configure callback
void SetBindRewardObserver(FINTLLIBindRewardEvent& callback)
//get callback
FINTLLIBindRewardEvent& GetLIBindRewardObserver();
Code sample
C++ event handling
//configure callback
FINTLLIBindRewardEvent LIEventObserver;
LIEventObserver = ULevelInfiniteAPI::GetLIBindRewardObserver().AddUObject(this, &OnBindRewardEvent_Callback);
void OnBindRewardEvent_Callback(FINTLLIBindRewardEvent Event)
{
}