sendLocationMessage method
Future<V2TimValueCallback<V2TimMessage> >
sendLocationMessage({
- required String desc,
- required double longitude,
- required double latitude,
- required String receiver,
- required String groupID,
- int priority = 0,
- bool onlineUserOnly = false,
- bool isExcludedFromUnreadCount = false,
- Map<
String, dynamic> ? offlinePushInfo,
override
发送地理位置消息
Implementation
@override
Future<V2TimValueCallback<V2TimMessage>> sendLocationMessage({
required String desc,
required double longitude,
required double latitude,
required String receiver,
required String groupID,
int priority = 0,
bool onlineUserOnly = false,
bool isExcludedFromUnreadCount = false,
Map<String, dynamic>? offlinePushInfo,
}) async {
return V2TimValueCallback<V2TimMessage>.fromJson(
formatJson(
await _channel.invokeMethod(
'sendLocationMessage',
buildMessageMangerParam(
{
"desc": desc,
"longitude": longitude,
"latitude": latitude,
"receiver": receiver,
"groupID": groupID,
"priority": priority,
"onlineUserOnly": onlineUserOnly,
"isExcludedFromUnreadCount": isExcludedFromUnreadCount,
"offlinePushInfo": offlinePushInfo,
},
),
),
),
);
}