The Agora Chat SDK provides a message reporting API, which allows end-users to report objectionable messages directly from their applications. After the Agora Chat server receives the report, it stores the report and displays it on Agora Console. Moderators can view the report items on the Agora Console and process the messages and message senders according to their content policy.
Call ReportMessage
provided by the Agora Chat Android SDK to implement the reporting feature.
The Agora Chat SDK provides a message reporting API, which allows end-users to report objectionable messages directly from their applications. After the Agora Chat server receives the report, it stores the report and displays it on Agora Console. Moderators can view the report items on the Agora Console and process the messages and message senders according to their content policy.
To use the reporting feature, refer to the following code sample to call the reporting API:
SDKClient.Instance.ChatManager.ReportMessage(msgId, tag, reason, new CallBack(
onSuccess: () =>
{
Debug.Log($"ReportMessage success.");
},
onError: (code, desc) =>
{
Debug.Log($"ReportMessage failed, code:{code}, desc:{desc}");
}
));