Get Notice Data (NoticeRequestData)
Get Notice Data
Function Definition
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static FString NoticeRequestData(
const FString Region,
const FString LangType,
const FString ExtraJson);
Input Parameters
| Parameters | Type | Explanation |
|---|---|---|
| Region | FString | ISO 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. |
| langType | FString | Language type (RFC 4646), such as "en", used to define the language for sending emails and SMS For more details, see Language Type Definition |
| ExtraJson | FString | Additional 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