sendImageMessage method

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

发送图片消息

Implementation

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