sendLocationMessage method
- {required String sessionId,
- required NIMSessionType sessionType,
- required double latitude,
- required double longitude,
- required String address,
- MessageAction? action}
发送地理位置消息
Implementation
Future<NIMResult<NIMMessage>> sendLocationMessage({
required String sessionId,
required NIMSessionType sessionType,
required double latitude,
required double longitude,
required String address,
MessageAction? action,
}) async {
var message = NIMMessage.locationEmptyMessage(
sessionId: sessionId,
sessionType: sessionType,
latitude: latitude,
longitude: longitude,
address: address);
return _createMessageAndSend(message, action);
}