README.md 2.6 KB

项目:朗读小咖秀插件(带渠道登录支付测试版) 插件ID:wxf1a06dafa3350688
插件版本:1.0.53

Android端方法---JS调用方法:


初始化插件(通过反射赋值application以及topActivity)
initPluginMethod(data: JSONObject?, callback: (data: Any) -> Unit)---->initPlugin(({}), (res) => {})

获取deviceUUID,SyncJsApi,直接返回值
getDeviceUUID(data: JSONObject?)---->getDeviceUuid({})

初始化联想SDK
lenovoInit(data: JSONObject?, callback: (data: Any) -> Unit)---->lenovoInitSDK(({}), (res) => {})

联想渠道登陆
lenovoLogin(data: JSONObject?, callback: (data: Any) -> Unit)---->lenovoLogin(({}), (res) => {})

联想渠道退出登陆
lenovoLogout(data: JSONObject?, callback: (data: Any) -> Unit)---->lenovoLogout(({}), (res) => {})

初始化支付宝支付
aliPayInit(data: JSONObject?, callback: (data: Any) -> Unit)---->aliPayInit(({}), (res) => {})

支付宝支付(接收小程序传参)
aliPay(data: JSONObject?, callback: (data: Any) -> Unit)---->aliPay(({}), (res) => {})

初始化权限(接收小程序传参)
initPermission(data: JSONObject?, callback: (data: Any) -> Unit)---->initPermissions(({}), (res) => {})

检查是否有权限(接收小程序传参),直接返回boolean值
checkPermission(data: JSONObject?)---->checkPermission({})