SendChat static method

void SendChat(
  1. int id,
  2. String data,
  3. int type,
  4. int mode,
)

发送离线消息

Implementation

// 	 * 发送文件
// 	 * @param id 目标id
// 	 * @param data 数据
// 	 * @param type 发送类型,0 :发送给个人,1 :发送给群组
// 	 * @param mode 内容类型,6: 发送图片,jpg格式,7:发送语音,aac格式,8 :发送视频,mp4格式,9 :发送动态图片,gif格式,1001 :发送文本,1002 :发送SOS,格式:SOS&经度&纬度,1003:二进制
 static void SendChat(int id, String data, int type, int mode) async {
   Log.i(tag, "SendChat");
   PlatformMethodInvokeHandler.invokeMethod("SendChat",[id.toString(),data,type,mode]);
 }