sendFileMessage method

Future<V2TimValueCallback<V2TimMessage>> sendFileMessage({
  1. required String filePath,
  2. required String fileName,
  3. required String receiver,
  4. String? groupID,
  5. int? priority = 0,
  6. bool onlineUserOnly = false,
})

ๅ‘้€ๆ–‡ไปถ

Implementation

Future<V2TimValueCallback<V2TimMessage>> sendFileMessage({
  required String filePath,
  required String fileName,
  required String receiver,
  String? groupID,
  int? priority = 0,
  bool onlineUserOnly = false,
}) async {
  return V2TimValueCallback<V2TimMessage>.fromJson(
    _formatJson(
      await _channel.invokeMethod(
        "sendFileMessage",
        _buildParam(
          {
            "filePath": filePath,
            "fileName": fileName,
            "receiver": receiver,
            "groupID": groupID,
            "priority": priority,
            "onlineUserOnly": onlineUserOnly,
          },
        ),
      ),
    ),
  );
}