reportMessage

fun reportMessage(message: BaseMessage, reportCategoryInfo: ReportCategoryInfo, reportDescription: String?, handler: CompletionHandler?)

Reports a malicious message.

Since

4.21.0

Parameters

reportCategoryInfo

ReportCategoryInfo.

reportDescription

Report description. (optional)

handler

Callback handler.


fun reportMessage(message: BaseMessage, reportCategory: ReportCategory, reportDescription: String?, handler: CompletionHandler?)

Deprecated

As of 4.21.0, use reportMessage(BaseMessage, ReportCategoryInfo, String?, CompletionHandler?) instead.

Replace with

reportMessage(message, ReportCategoryInfo.from(reportCategory), reportDescription, handler)

Reports a malicious message.

Since

3.0.105

Parameters

reportCategory
reportDescription

Report description. (optional)

handler

Callback handler.