2025-10-09 16:48:46 +08:00

32 lines
915 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// V2NIMClientAntispamUtil.h
// NIMLib
//
// Created by Netease.
// Copyright (c) 2023 Netease. All rights reserved.
//
#import <Foundation/Foundation.h>
@class V2NIMClientAntispamResult;
NS_ASSUME_NONNULL_BEGIN
@interface V2NIMClientAntispamUtil : NSObject
/**
* 对文本消息的文本进行检查,并可能替代
*
* @param message 文本消息
* @param shield 屏蔽文本
*
* @return 返回原消息或者nil
* @discussion 使用此方法会对输入的文本消息的文本进行本地反垃圾检查如果被本地拦截返回nil。如果需要屏蔽关键字将使用参数shield中指定的文本进行屏蔽并修改消息文本。如果需要服务器拦截会自动进行标记。
*/
+ (V2NIMClientAntispamResult *)checkTextAntispam:(NSString *)text
replace:(nullable NSString *)replace;
@end
NS_ASSUME_NONNULL_END