LoadNoticeData
[Player Network SDK & MSDK] Get notice data.
Supported Platform
- Unity
- Unreal Engine
Supports
Android, iOS, Windows
platform.Supports
Android, iOS, Windows
platform.Function Definition
- Unity
- Unreal Engine
string LoadNoticeData(string noticeGroup, string language, string region, string partition, string extraJson = "");
static std::string LoadNoticeData(const std::string ¬ice_group, const std::string &language, const std::string ®ion, const std::string &partition, const std::string &extra_json = "{}");
Input Parameters
- Unity
- Unreal Engine
Parameter | Type | Description |
---|---|---|
noticeGroup | string | [MSDK Only] Get notice information from noticegroup |
language | string | Language type (RFC 4646), such as "en". It defines the language used to send emails and SMS messages. For more information, see MSDK Language Type Definition or Player Network SDK Language Type Definition |
region | string | The user's ISO 3166-1 country or area code, defined in the MSDK document or Player Network Documentation |
partition | string | [MSDK Only] Game zone |
extraJson | string | Extended field |
Parameter | Type | Description |
---|---|---|
notice_group | std::string | [MSDK Only] Get notice information from noticegroup |
language | std::string | Language type (RFC 4646), such as "en". It defines the language used to send emails and SMS messages. For more information, see MSDK Language Type Definition or Player Network SDK Language Type Definition |
region | string | The user's ISO 3166-1 country or area code, defined in the MSDK document or Player Network Documentation |
partition | string | [MSDK Only] Game zone |
extra_json | std::string | Extended field |
Callback Processing
The callback processing API is GUANoticeResultObserver. The callback data structure is GUANoticeResult.
- Unity
- Unreal Engine
The callback event is NoticeResultEvents.
The callback methodID is GUA_NOTICE_REQUEST_DATA
.
The callback event is OnLoadNoticeData.
The callback methodID is kMethodIDNoticeRequestData
.
Code Sample
- Unity
- Unreal Engine
UnionAdapterAPI.GetNoticeService().LoadNoticeData("notice_group", "en", "156", "partition")
GUA_NAMESPACE::GUANoticeService::LoadNoticeData("notice_group", "en", "156", "Partition");