EMMessage.createLocationSendMessage constructor
创建位置类型消息 latitude
: 纬度; longitude
: 经度; locationAddress
: 位置名称; userName
: 接收方id
Implementation
EMMessage.createLocationSendMessage(double latitude, double longitude,
String locationAddress, String userName)
: this(
direction: Direction.SEND,
type: EMMessageType.LOCATION,
body: EMLocationMessageBody(locationAddress, latitude, longitude),
to: userName);