createFileMessage method

Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createFileMessage({
  1. required String filePath,
  2. required String fileName,
  3. Uint8List? fileContent,
})

创建文件消息

参数: filePath 文件路径 fileName文件名称 fileContent 字节数组(web端使用,且必填)

Implementation

Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createFileMessage(
    {required String filePath,
    required String fileName,
    Uint8List? fileContent}) async {
  return ImFlutterPlatform.instance.createFileMessage(
      filePath: filePath, fileName: fileName, fileContent: fileContent);
}