|
|
@ -19,13 +19,15 @@ public class OnBaseListener implements Base { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void onError(int l, String s) { |
|
|
|
public void onError(int l, String s) { |
|
|
|
Log.i("F-OpenIMSDK(native call flutter)", "method: 【 " + call.method + " 】, onError: { code:" + l + ", message:" + s + "}"); |
|
|
|
String threadName = Thread.currentThread().getName(); |
|
|
|
|
|
|
|
Log.i("F-OpenIMSDK(native call flutter)", "thread: " + threadName + " method: 【 " + call.method + " 】, onError: { code:" + l + ", message:" + s + "}"); |
|
|
|
CommonUtil.runMainThreadReturnError(result, l, s, null); |
|
|
|
CommonUtil.runMainThreadReturnError(result, l, s, null); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void onSuccess(String s) { |
|
|
|
public void onSuccess(String s) { |
|
|
|
Log.i("F-OpenIMSDK(native call flutter)", "method: 【 " + call.method + " 】, onSuccess: " + s); |
|
|
|
String threadName = Thread.currentThread().getName(); |
|
|
|
|
|
|
|
Log.i("F-OpenIMSDK(native call flutter)", "thread: " + threadName + " method: 【 " + call.method + " 】, onSuccess: " + s); |
|
|
|
CommonUtil.runMainThreadReturn(result, s); |
|
|
|
CommonUtil.runMainThreadReturn(result, s); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|