luaj

来源:互联网 发布:macos不支持windows 编辑:程序博客网 时间:2024/05/23 17:20
local NativeInterFace = class("NativeInterFace")local ClassName = "com/guogame/needle/AppActivity"function NativeInterFace:ShareCallback()print("NativeInterFace:ShareCallback")local args = {}if device.platform == "android" thenprint("android 调用了")local ok, ret = luaj.callStaticMethod(ClassName, "Share", args,"()V")if not ok then    print("luaj error:", ret)else    print("ret:", ret) -- 输出 ret: 5endendend

0 0
原创粉丝点击