Skip to main content

Get Notice Data (NoticeRequestData)

AndroidiOSWindows
If you're using the Unity engine, see the RequestNoticeData for Unity SDK.

Get Notice Data

Function Definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static FString NoticeRequestData(
const FString Region,
const FString LangType,
const FString ExtraJson);

Input Parameters

ParametersTypeExplanation
RegionFStringISO 3166-1 numeric code for country or region
For example, 156 stands for China and 040 stands for Austria.
Passing 0 can retrieve announcements for all regions.
langTypeFStringLanguage type (RFC 4646), such as "en", used to define the language for sending emails and SMS
For more details, see Language Type Definition
ExtraJsonFStringAdditional information

Callback processing

The callback processing interface is NoticeResultObserver.The callback data structure is NoticeResult.

The callback ID is kMethodIDNoticeRequestData.

Code example

UINTLSDKAPI::NoticeRequestData("0","zh-Hans","{}");

Notice custom tag configuration

In notices, custom tags can be personalized for announcements based on different conditions like platform, user groups, and app versions.

Custom tags can be configured in the Player Network Console. For details, see Announcement Custom Attributes.

You can also pass corresponding key-value pairs in the ExtraJson parameter of NoticeRequestData.

Code Example:

UINTLSDKAPI::NoticeRequestData("0", "zh-Hans", "{\"os\":\"2\"}"); // 1=Android, 2=iOS