Load notice information (LoadNoticeData)
[Player Network SDK & MSDK] Retrieve notice data.
Supported platforms
- 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
| Parameters | Type | Description |
|---|---|---|
| noticeGroup | string | [MSD only] Extract notice information via noticegroup |
| language | string | Language code (RFC 4646), such as "en", is used to specify the language for sending emails and SMS. For details, please refer to MSDK or Player Network SDK language code definitions. |
| region | string | User ISO 3166-1 country or region code, defined in the MSDK document or the Player Network documentation |
| partition | string | [MSDK only] Game partition |
| extraJson | string | Extended Field |
| Parameters | Type | Description |
|---|---|---|
| notice_group | std::string | [MSD only] Extract notice information via noticegroup |
| language | std::string | Language code (RFC 4646), such as "en", is used to specify the language for sending emails and SMS. For details, please refer to MSDK or Player Network SDK language code definitions. |
| region | string | User ISO 3166-1 country or region code, defined in the MSDK document or the Player Network documentation |
| partition | string | [MSDK only] Game partition |
| extra_json | std::string | Extended Field |
Callback Handling
The callback handler interface is GUANoticeResultObserver.The callback data structure is GUANoticeResult.
- Unity
- Unreal Engine
The callback event is NoticeResultEvents. The callback ID is GUA_NOTICE_REQUEST_DATA.
The callback event is OnLoadNoticeData. Callback ID is kMethodIDNoticeRequestData.
Code Example
- Unity
- Unreal Engine
UnionAdapterAPI.GetNoticeService().LoadNoticeData("notice_group", "en", "156", "partition")
GUA_NAMESPACE::GUANoticeService::LoadNoticeData("notice_group", "en", "156", "Partition");