Modify legal document version information [Player Network SDK only]
[Player Network SDK only] Modify the legal document version information for Player Network SDK users.
note
Contact the Player Network assistant before integration.
Supported Platforms
- Unity
- Unreal Engine
Supports
Android, iOS, Windows platform.Supports
Android, iOS, Windows platform.Function Definition
- Unity
- Unreal Engine
void ModifyLegalDocumentsAcceptedVersion(string version);
static void ModifyLegalDocumentsAcceptedVersion(const std::string &version);
Input Parameters
- Unity
- Unreal Engine
| Name | Type | Description |
|---|---|---|
| version | string | Legal document version information |
| Name | Type | Description |
|---|---|---|
| version | std::string | Legal document version information |
Callback Handling
The callback processing interface is GUABaseResultObservers.The callback data structure is GUABaseResult.
- Unity
- Unreal Engine
The callback event is LoginBaseResultEvents. The callback ID is GUA_ACCOUNT_MODIFY_LEGAL_DOCUMENTS.
The callback event is OnBaseResultNotify. The callback ID is kMethodIDAccountModifyLegalDocuments.
Code Example
- Unity
- Unreal Engine
UnionAdapterAPI.GetAccountService().ModifyLegalDocumentsAcceptedVersion("0.1");
GUA_NAMESPACE::GUAAccountService::ModifyLegalDocumentsAcceptedVersion("0.1");
Error Codes
| Error Code List | Description |
|---|---|
| 1004 | Format error, the size of legal document data exceeds the allowed maximum. Default maximum is 1000 bytes, configurable by the backend. |
| 1810 | Legal document does not exist |
| 1811 | The current business does not support legal documents |