sendLocationMessage static method
- @Deprecated('Instead of use Mirrorfly.sendMessage(messageParams: MessageParams.location())')
Sends a location message to a specified JID.
This method sends a location message, including latitude and longitude, to the user or group identified by the jid
.
The latitude
and longitude
parameters specify the location's coordinates.
The replyMessageId
parameter is optional and specifies the ID of the message being replied to, if any.
Parameters:
jid
: The JID of the recipient.latitude
: The latitude of the location.longitude
: The longitude of the location.replyMessageId
: The ID of the message being replied to (optional).
Returns a Future<String> containing the ID of the sent message.
Throws an ArgumentError if jid
, latitude
, or longitude
is null.
Implementation
@Deprecated(
'Instead of use Mirrorfly.sendMessage(messageParams: MessageParams.location())')
static Future<String> sendLocationMessage(
String jid, double latitude, double longitude, String replyMessageId,
{String? topicId}) {
return FlyChatFlutterPlatform.instance.sendLocationMessage(
jid, latitude, longitude, replyMessageId,
topicId: topicId);
}