sendLocationMessage method Null safety
- @Deprecated('sendLocationMessage has been deprecated since 3.6.0, we separate the creation of the message from the sending of the message, please use createLocationMessage to create a message first, and then call sendMessage to send the message')
- {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}
@Deprecated('sendLocationMessage has been deprecated since 3.6.0, we separate the creation of the message from the sending of the message, please use createLocationMessage to create a message first, and then call sendMessage to send the message')
Send geographical location message
Implementation
@Deprecated(
'sendLocationMessage has been deprecated since 3.6.0, we separate the creation of the message from the sending of the message, please use createLocationMessage to create the message, and then call sendMessage to send the message')
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: EnumUtils.convertMessagePriorityEnum(priority),
onlineUserOnly: onlineUserOnly,
isExcludedFromUnreadCount: isExcludedFromUnreadCount,
offlinePushInfo: offlinePushInfo?.toJson());
}