createFaceMessage method

  1. @override
Future<V2TimMsgCreateInfoResult?> createFaceMessage({
  1. required int index,
  2. required String data,
})
override

Implementation

@override
Future<V2TimMsgCreateInfoResult?> createFaceMessage(
    {required int index, required String data}) async {
  final res = await TencentImSDKPlugin.v2TIMManager
      .getMessageManager()
      .createFaceMessage(index: index, data: data);
  if (res.code == 0) {
    final messageResult = res.data;
    return messageResult;
  }
  _coreService.callOnCallback(TIMCallback(
      type: TIMCallbackType.API_ERROR,
      errorMsg: res.desc,
      errorCode: res.code));
  return null;
}