(ModifyLegalDocumentsAcceptedVersion [Player Network SDK Only]
[Player Network SDK Only] Modifies the current user's legal document acceptance version.
note
Please reach out to the Player Network representative before using the API.
Supported Platform
- 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 Processing
The callback processing API is GUABaseResultObservers. The callback data structure is GUABaseResult.
- Unity
- Unreal Engine
The callback event is LoginBaseResultEvents.
The callback methodID is GUA_ACCOUNT_MODIFY_LEGAL_DOCUMENTS.
The callback event is OnBaseResultNotify.
The callback methodID is kMethodIDAccountModifyLegalDocuments.
Code Sample
- Unity
- Unreal Engine
UnionAdapterAPI.GetAccountService().ModifyLegalDocumentsAcceptedVersion("0.1");
GUA_NAMESPACE::GUAAccountService::ModifyLegalDocumentsAcceptedVersion("0.1");
Error Code
| Error code | Description |
|---|---|
| 1004 | Invalid format, legal file data size exceeds the maximum. Default maximum is 1000 bytes, which can be configured in the backend. |
| 1810 | Legal file does not exist. |
| 1811 | Current game does not support legal files. |