随笔 - 2649  文章 - 2452  评论 - 0  阅读 - 80424
上一页 1 2 3 4 5 6 7 8 9 10 ··· 265 下一页
  2025年2月24日
摘要: unregisterEvent 当小程序中调用 wmpf.Channel.unregisterEvent 时,会通知到 Client 端,Client 应该停止发送对应事件。 传入参数 通过 selectionArgs 传递 参数 类型 必填 说明 event_id String 是 调用 id , 阅读全文
posted @ 2025-02-24 15:48 AtlasLapetos 阅读(2) 评论(0) 推荐(0) 编辑
摘要: registerEvent 当小程序中调用 wmpf.Channel.registerEvent时,会通知到 Client 端。当小程序注册的事件触发时,客户端需要向小程序发送对应事件,小程序可以通过 wmpf.Channel.on 监听。 传入参数 通过 ContentValues 传递 参数 类 阅读全文
posted @ 2025-02-24 15:48 AtlasLapetos 阅读(2) 评论(0) 推荐(0) 编辑
摘要: invokeSync 当小程序中调用 wmpf.Channel.invokeSync 时,Client 端需要使用 call 操作完成同步调用。 传入参数 command 对应 call 方法的 「method」 字段,data 对应 call 方法的 「arg」 字段 参数 类型 必填 说明 co 阅读全文
posted @ 2025-02-24 15:48 AtlasLapetos 阅读(1) 评论(0) 推荐(0) 编辑
摘要: invoke 当小程序中调用 wmpf.Channel.invoke 时,Client 端需要使用 insert 操作完成异步调用。 传入参数 通过 ContentValues 传递 参数 类型 必填 说明 invoke_id String 是 调用 id ,用于后续获取对应的返回数据,每次调用的 阅读全文
posted @ 2025-02-24 15:48 AtlasLapetos 阅读(1) 评论(0) 推荐(0) 编辑
摘要: WMPFClientProvider 需 WMPF >= 2.2.0 支持。 封装小程序与移动应用通信的接口。 AndroidManifest.xml 配置 <application> <provider android:name="ClientProvider" android:authoriti 阅读全文
posted @ 2025-02-24 15:48 AtlasLapetos 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 小程序与移动应用通信 WMPF 提供了小程序与 WMPF Client 之间进行数据通信的通道(Invoke Channel)。帮助开发者在小程序与移动应用之间,以事件和接口调用的形式进行数据传递。 1. 小程序端 1.1 服务指令 我们可以通过触发第三方应用服务指令的形式,让 WMPF Clien 阅读全文
posted @ 2025-02-24 15:48 AtlasLapetos 阅读(3) 评论(0) 推荐(0) 编辑
摘要: NotifyBackgroundMusic 建议使用 WMPFMusicApi.registerMusicPlayStatusListener 接口. 调用参数 属性 说明 notify 是否监听背景音频变化,true 为监听,false 为取消监听 返回参数 属性 说明 state START:1 阅读全文
posted @ 2025-02-24 15:48 AtlasLapetos 阅读(5) 评论(0) 推荐(0) 编辑
  2025年2月22日
摘要: ManageBackgroundMusic 建议使用 WMPFMusicApi.showManageUI 接口. 用于管理背景音频 调用参数 属性 说明 showManageUI 是否显示管理页面 forceRequestFullscreen true 则强制小程序全屏运行 返回参数 属性 说明 s 阅读全文
posted @ 2025-02-22 13:34 AtlasLapetos 阅读(3) 评论(0) 推荐(0) 编辑
摘要: WMPFMusicController 需 WMPF >= 2.1.0 支持,使用前建议阅读注意事项 2.2.0 开始停止维护,建议使用 WMPFMusicApi 系列接口 1. addMusicPlayStatusListener 注册 WMPF 背景音频播放状态变化事件回调。 调用参数 参数 类 阅读全文
posted @ 2025-02-22 13:33 AtlasLapetos 阅读(1) 评论(0) 推荐(0) 编辑
摘要: MediaSession 支持 需 WMPF >= 2.1.0 支持,使用前建议阅读注意事项 车机版本的 WMPF 将会注册 MediaBrowseService 服务 com.tencent.wmpf.car_sdk.contract.WMPFMusicService 并在小程序播放背景音频时控制 阅读全文
posted @ 2025-02-22 13:33 AtlasLapetos 阅读(2) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 265 下一页
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示