General information
Allows games to directly raise the contact Customer Support Team layer in the game. It also allows optionally specifying the purpose and topic of the complaint. If the purpose and topic were passed in the method and exist in the list of purposes and topics of contact, they will be preselected upon raising the layer.
- To get information about all purposes and topics, use the application.getComplaintFormat method.
Method signature
Parameter | Required | Description |
---|---|---|
target | No | The purpose of contact is an optional parameter and can be selected from the list of existing purposes |
theme | No | The contact topic is an optional parameter and can be selected from the list of existing topics in the specified purpose |
Call example
Callback function
Depending on the event, the answer will vary:
The form is not included:
method: “openComplaintForm”
result: “error”
data: ‘{“text”:disabled}’
The user closed the form without submitting a contact request
method: “openComplaintForm”
result: “error”
data: ‘{“text”:cancel}’
The user closed the form with submitting a complaint
method: “openComplaintForm”
result: “ok”
data: ‘{“text”:complaint sent}’