sendFaceMessage method Null safety
- @Deprecated('sendFaceMessage has been deprecated since 3.6.0, we separate the creation of the message from the sending of the message, please use createFaceMessage to create the message first, and then call sendMessage to send the message')
- {required int index,
- required String data,
- required String receiver,
- required String groupID,
- MessagePriorityEnum priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL,
- bool onlineUserOnly = false,
- bool isExcludedFromUnreadCount = false,
- OfflinePushInfo? offlinePushInfo}
@Deprecated('sendFaceMessage has been deprecated since 3.6.0, we separate the creation of the message from the sending of the message, please use createFaceMessage to create the message first, and then call sendMessage to send the message')
Create an emoji message
The IM SDK does not provide any emoji package. Developers can use index to store the indexes of the emojis they have in their emoji packages. Alternatively, they can directly use data to store emoji binary data and the string key. Either way, emoji packages are customized by developers, and the SDK is only responsible for passing them through.
Parameter index: Emoji index data: Custom data
Implementation
@Deprecated(
'sendFaceMessage has been deprecated since 3.6.0, we separate the creation of the message from the sending of the message, please use createFaceMessage to create a message, and then call sendMessage to send the message')
Future<V2TimValueCallback<V2TimMessage> ;> sendFaceMessage({
required int index,
required String data,
required String receiver,
required String groupID,
MessagePriorityEnum priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL,
bool onlineUserOnly = false,
bool isExcludedFromUnreadCount = false,
OfflinePushInfo? offlinePushInfo,
}) async {
return await ImFlutterPlatform.instance.sendFaceMessage(
index: index,
data: data,
receiver: receiver,
groupID: groupID,
priority: EnumUtils.convertMessagePriorityEnum(priority),
onlineUserOnly: onlineUserOnly,
isExcludedFromUnreadCount: isExcludedFromUnreadCount,
offlinePushInfo: offlinePushInfo?.toJson());
}