Fetch
This function obtains the DeepLink data in the SDK cache.
Fetch
function call sequence:
- This function is called when the app is launched. When it obtains data, the SDK does not know if callbacks have been configured at the engine layer to receive data. Therefore, the app calls
Fetch
to obtain the DeepLink data cached by SDK. - Fetch is also called when a DeepLink callback is received. This callback indicates SDK has received DeepLink data. Therefore, the app calls
Fetch
to get the latest data.
Common scenarios: When an app is called up from the background by an external link.
note
After calling Fetch
, the data in the SDK cache is cleared.
Function definition
static FString Fetch();
Code sample
FString url = UINTLSDKAPI::Fetch();
Return value
The Fetch
function returns a JSON string with two keys: url
and params
.
Example:
{
"url":"https://sdk-deeplink-confs.intlgame.com/help?d=h&a=b",
"params":{
"a":"b",
"d":"h"
}
}