大约有 17 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0019 秒)
...Android/iOS)主动执行js脚本 iOS/OC执行JS脚本: [[conchRuntime GetIOSConchRuntime] runJS:@"alert('hello')"]; Android/Java执行JS脚本: ConchJNI.RunJS("alert('hello world')"); 2025-08-20 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁...
来源: Laya_社区 发布时间: 20250820
...ize=14]IOS代码:[/size] +(void)getDeviceIDInKeychain { [[conchRuntime GetIOSConchRuntime] callbackToJSWithClass:self.class methodName:@"getDeviceIDInKeychain:" ret:@"test"]; } 我能调用到IOS的方法getDeviceIDInKeychain ,但是JS没有收到OC的回调,按着官方文档试了很多次...
来源: Laya_社区 发布时间: 20181206
...; chen541788 • 2018-01-18 10:16 然后objectC才能回调 [[conchRuntime GetIOSConchRuntime] callbackToJSWithObject:self methodName:@"operatorWith:and:" ret:[NSNumber numberWithInt:result]]; chen541788 • 2018-01-18 10:18 我是想问objectC怎样直接调用js, 而不是回调 qian ...
来源: Laya_社区 发布时间: 20180117
...生回调问题 + (void)getVersion:(NSString *) url{ [[conchRuntime GetIOSConchRuntime] callbackToJSWithObject:self methodName:@"getVersion:" ret:@"me too"]; } 函数内这段代码执行后会报错,我就想返回一个字符串,这样写有啥问题呢? 2017-04-27 添加评论 免费...
来源: Laya_社区 发布时间: 20170427
...Android中调用AS 类实例的方法 在iOS中通过调用 [[conchRuntime GetIOSConchRuntime] callMethod:jsObjId className:@"platform.PlatformAPI" methodName:methodName param:strValue], 运行时候报 reflection error : can not find class [platform.PlatformAPI]. 不知道原因。 className...
来源: Laya_社区 发布时间: 20161202
...@"playVideo"); // 静态函数回调通知JS层 [[conchRuntime GetIOSConchRuntime] runJS: @"video.end()"]; } @end 请问,代码什么地方有问题,如果修改?谢谢! 2017-09-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20170919
...原生端中主动执行JS端脚本 iOS/OC执行JS脚本: [[conchRuntime GetIOSConchRuntime] runJS:@"alert('hello')"]; Android/Java执行JS脚本: ConchJNI.RunJS("alert('hello world')"); 2. 原生端的消息处理 1. HarmonyOS 在libSysCapabilities/src/main/ets/event/HandleMessageUtils.ts添加...
来源: Laya3.0_文档 发布时间: 20251010