sendLocationMessage static method

  1. @Deprecated('Instead of use Mirrorfly.sendMessage(messageParams: MessageParams.location())')
Future<String> sendLocationMessage(
  1. String jid,
  2. double latitude,
  3. double longitude,
  4. String replyMessageId, {
  5. String? topicId,
})

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);
}