checkLocalAntiSpam method Null safety
Scan text messages of one-to-one chats, group chats, and chatroom against the SDK's list of undesirable terms. You need to configure the term list on the CommsEase Console and apply it to the SDK.
[content] Text to be moderated
[replacement] Specify the contents that will replace the undesired contents detected in the moderation.
[LocalAntiSpamResult] Moderation results
Implementation
Future<NIMResult<NIMLocalAntiSpamResult>> checkLocalAntiSpam(
String content, String replacement) {
return _platform.checkLocalAntiSpam(content, replacement);
}