摘要:        
unregisterEvent 当小程序中调用 wmpf.Channel.unregisterEvent 时,会通知到 Client 端,Client 应该停止发送对应事件。 传入参数 通过 selectionArgs 传递 参数 类型 必填 说明 event_id String 是 调用 id ,    阅读全文
        
            posted @ 2025-02-24 15:48
AtlasLapetos
阅读(10)
评论(0)
推荐(0)
        
            
        
        
摘要:        
registerEvent 当小程序中调用 wmpf.Channel.registerEvent时,会通知到 Client 端。当小程序注册的事件触发时,客户端需要向小程序发送对应事件,小程序可以通过 wmpf.Channel.on 监听。 传入参数 通过 ContentValues 传递 参数 类    阅读全文
        
            posted @ 2025-02-24 15:48
AtlasLapetos
阅读(15)
评论(0)
推荐(0)
        
            
        
        
摘要:        
invokeSync 当小程序中调用 wmpf.Channel.invokeSync 时,Client 端需要使用 call 操作完成同步调用。 传入参数 command 对应 call 方法的 「method」 字段,data 对应 call 方法的 「arg」 字段 参数 类型 必填 说明 co    阅读全文
        
            posted @ 2025-02-24 15:48
AtlasLapetos
阅读(9)
评论(0)
推荐(0)
        
            
        
        
摘要:        
invoke 当小程序中调用 wmpf.Channel.invoke 时,Client 端需要使用 insert 操作完成异步调用。 传入参数 通过 ContentValues 传递 参数 类型 必填 说明 invoke_id String 是 调用 id ,用于后续获取对应的返回数据,每次调用的     阅读全文
        
            posted @ 2025-02-24 15:48
AtlasLapetos
阅读(27)
评论(0)
推荐(0)
        
            
        
        
摘要:        
WMPFClientProvider 需 WMPF >= 2.2.0 支持。 封装小程序与移动应用通信的接口。 AndroidManifest.xml 配置 <application> <provider android:name="ClientProvider" android:authoriti    阅读全文
        
            posted @ 2025-02-24 15:48
AtlasLapetos
阅读(18)
评论(0)
推荐(0)
        
            
        
        
摘要:        
小程序与移动应用通信 WMPF 提供了小程序与 WMPF Client 之间进行数据通信的通道(Invoke Channel)。帮助开发者在小程序与移动应用之间,以事件和接口调用的形式进行数据传递。 1. 小程序端 1.1 服务指令 我们可以通过触发第三方应用服务指令的形式,让 WMPF Clien    阅读全文
        
            posted @ 2025-02-24 15:48
AtlasLapetos
阅读(43)
评论(0)
推荐(0)
        
            
        
        
摘要:        
NotifyBackgroundMusic 建议使用 WMPFMusicApi.registerMusicPlayStatusListener 接口. 调用参数 属性 说明 notify 是否监听背景音频变化,true 为监听,false 为取消监听 返回参数 属性 说明 state START:1    阅读全文
        
            posted @ 2025-02-24 15:48
AtlasLapetos
阅读(13)
评论(0)
推荐(0)
        
                    
                
        
浙公网安备 33010602011771号