Skip to main content

NoticeRequestData

AndroidiOSWindows
If you were looking for the method for use with Unity, see RequestNoticeData for Unity SDK.

Request notice data.

Function definition​

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

Input parameters​

ParameterTypeDescription
RegionFStringISO 3166-1 numeric code for country or region
For example 156 for China, 040 for Austria
Region value 0 for pulling all region notice
langTypeFStringLanguage code (RFC 4646) that defines the language used to send emails and SMS messages, such as "en"
For more information, see Language Type Definition
ExtraJsonFStringExtended field

Observers​

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

The callback methodID is kMethodIDNoticeRequestData.

Code sample​

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

Configure custom tags for announcements​

The tags used in announcements can be customized to deliver targeted announcements based on various conditions, such as platform, user group, and app version.

To configure custom tags for announcements from Player Network Console, see Announcement Custom Property.

Alternatively, you may also pass the key-value pair to the ExtraJson parameter in NoticeRequestData.

Sample code:

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