Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
80a8fab891 | ||
|
|
ea82c50d79 |
@@ -63,12 +63,16 @@ public class FlutterOpenimSdkPlugin implements FlutterPlugin, MethodCallHandler,
|
||||
|
||||
@Override
|
||||
public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) {
|
||||
if(isInitialized){
|
||||
return;
|
||||
}
|
||||
channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), CHANNEL_NAME);
|
||||
context = flutterPluginBinding.getApplicationContext();
|
||||
channel.setMethodCallHandler(this);
|
||||
connectivityListener = new ConnectivityListener(context);
|
||||
visibilityListener = new VisibilityListener();
|
||||
connectivityListener.register();
|
||||
isInitialized = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -53,7 +53,7 @@ public class CommonUtil {
|
||||
@Override
|
||||
public void success(Object result) {
|
||||
// 处理成功返回值
|
||||
Log.i("F-OpenIMSDK(native call flutter)", "Method " + method + " returned: " + result.toString());
|
||||
Log.i("F-OpenIMSDK(native call flutter)", "Method " + method + " returned: ");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user