createChatroomLocationMessage static method

Future<NIMResult<NIMChatroomMessage>> createChatroomLocationMessage(
  1. {required String roomId,
  2. required double latitude,
  3. required double longitude,
  4. required String address}
)

创建地理位置消息

Implementation

static Future<NIMResult<NIMChatroomMessage>> createChatroomLocationMessage({
  required String roomId,
  required double latitude,
  required double longitude,
  required String address,
}) async {
  return NimCore.instance.chatroomService._createMessage({
    'roomId': roomId,
    'latitude': latitude,
    'longitude': longitude,
    'address': address,
    'messageType': 'location',
  });
}