sendLocationMessage method

  1. @Deprecated('sendLocationMessage自3.6.0开始弃用,我们将创建消息与发送消息分离,请先使用createLocationMessage创建消息,再调用sendMessage发送消息')
Future<V2TimValueCallback<V2TimMessage>> sendLocationMessage({
  1. required String desc,
  2. required double longitude,
  3. required double latitude,
  4. required String receiver,
  5. required String groupID,
  6. MessagePriorityEnum? priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL,
  7. bool onlineUserOnly = false,
  8. bool isExcludedFromUnreadCount = false,
  9. OfflinePushInfo? offlinePushInfo,
})

发送地理位置消息

Implementation

@Deprecated(
    'sendLocationMessage自3.6.0开始弃用,我们将创建消息与发送消息分离,请先使用createLocationMessage创建消息,再调用sendMessage发送消息')
Future<V2TimValueCallback<V2TimMessage>> sendLocationMessage({
  required String desc,
  required double longitude,
  required double latitude,
  required String receiver,
  required String groupID,
  MessagePriorityEnum? priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL,
  bool onlineUserOnly = false,
  bool isExcludedFromUnreadCount = false,
  OfflinePushInfo? offlinePushInfo,
}) async {
  return await ImFlutterPlatform.instance.sendLocationMessage(
      desc: desc,
      longitude: longitude,
      latitude: latitude,
      receiver: receiver,
      groupID: groupID,
      priority: priority!.index,
      onlineUserOnly: onlineUserOnly,
      isExcludedFromUnreadCount: isExcludedFromUnreadCount,
      offlinePushInfo: offlinePushInfo?.toJson());
}