public abstract static class LocalDataSender.SendCommonDataAsync extends MBAsyncTask
onPostExecute(Integer)方法。
为保持API使用的一致性,此类为本库的推荐实现类,但并非必须要使用,使用者也可自行设计异步数据发送过程(如使
用AsyncTask)。
ProtocalFactory.createCommonData(String, String, String, boolean, String, int),
LocalDataSender.sendCommonData(Protocal)| 限定符和类型 | 字段和说明 |
|---|---|
protected net.x52im.mobileimsdk.server.protocal.Protocal |
p |
| 构造器和说明 |
|---|
SendCommonDataAsync(net.x52im.mobileimsdk.server.protocal.Protocal p)
构造方法。
|
SendCommonDataAsync(java.lang.String dataContentWidthStr,
java.lang.String to_user_id)
(默认QoS=true、typeu值=-1)
|
SendCommonDataAsync(java.lang.String dataContentWidthStr,
java.lang.String to_user_id,
int typeu)
(默认QoS=true)
|
SendCommonDataAsync(java.lang.String dataContentWidthStr,
java.lang.String to_user_id,
java.lang.String fingerPrint,
int typeu)
(默认QoS=true)
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected java.lang.Integer |
doInBackground(java.lang.Object... params) |
protected abstract void |
onPostExecute(java.lang.Integer code) |
executepublic SendCommonDataAsync(java.lang.String dataContentWidthStr,
java.lang.String to_user_id)
dataContentWidthStr - to_user_id - #SendCommonDataAsync(String, String, String, int)public SendCommonDataAsync(java.lang.String dataContentWidthStr,
java.lang.String to_user_id,
int typeu)
dataContentWidthStr - to_user_id - typeu - #SendCommonDataAsync(String, String, String, int)public SendCommonDataAsync(java.lang.String dataContentWidthStr,
java.lang.String to_user_id,
java.lang.String fingerPrint,
int typeu)
dataContentWidthStr - to_user_id - fingerPrint - typeu - #SendCommonDataAsync(Protocal)public SendCommonDataAsync(net.x52im.mobileimsdk.server.protocal.Protocal p)
p - protected java.lang.Integer doInBackground(java.lang.Object... params)
doInBackground 在类中 MBAsyncTaskprotected abstract void onPostExecute(java.lang.Integer code)
onPostExecute 在类中 MBAsyncTask