Commit 6ef86f82 authored by 范雪寒's avatar 范雪寒

feat: 获取中间层信息的源生方法

parent d114c817
......@@ -65,13 +65,14 @@ cc.Class({
getMiddleLayerData() {
if (cc.sys.isNative && cc.sys.os == cc.sys.OS_IOS) {
return jsb.reflection.callStaticMethod(
"CocosMng",
"cocosWithNativeProtocol:"
"RootViewController",
"getMiddleLayerInfo:",
""
);
} else if (cc.sys.isNative && cc.sys.os == cc.sys.OS_ANDROID) {
return jsb.reflection.callStaticMethod(
"com/iplayabc/cocos/AppActivity",
"cocosWithNativeProtocol",
"getMiddleLayerInfo",
"(Ljava/lang/String;)Ljava/lang/String;",
""
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment