| Version 2 (modified by lijiajie, 11 years ago) (diff) |
|---|
功能 | API | 备注 |
|---|---|---|
用户到达/离开 |
app:Magazine.trigger(1)/Magazine.trigger(0) | |
新浪微博分享 | sinaweibo: | |
腾讯微博分享 | qqweibo: | |
QQ空间分享 | qzone: | |
微信分享 | weixinshare:?title=分享文案&icon=图标&url=分享链接 | url默认使用itunes下载地址 |
朋友圈分享 | wxfriendshare:?title=分享文案&icon=图标&url=分享链接 | url默认使用itunes下载地址 |
调用APP分享组件 | appshare://?title=分享文案&icon=图标&url=分享链接&sinatail=新浪尾巴&qqtail=腾讯微博尾巴[[BR]] 尾巴用于区分分享文案当中新浪与腾讯区别 | url默认使用itunes下载地址 |
成功发送微博后触发 |
app:Magazine.trigger(2,{username:123,shareType:2})[[BR]]
html:Magazine.addEvent(2,func)/ Magazine.addEvent(2,func(args){args[0].username}) | |
热区点击分享后终止触发 | app:Magazine.trigger(3) | |
页面调用登录模块 | login: | |
热区点击登录完成 | app:Magazine.trigger(4,{“user_id”:xxxxxxxx}) | |
保存图片 | saveimage:article-xxx/picture.png | |
全屏组图 | groupimage:image_path | |
打开iTunes链接 | ||
调用内嵌浏览器 | url_path#CustomBrowser? | |
弹出菜单 | url:http://PassOnClickEvent | |
跳转文章 | url:http://article-123/page-0 | |
看评论 | magazineComments:1 | |
写评论 | magazineComments:2 | |
播放音乐 |
backgroundaudio:?src=article-123/music.mp3&opt=play&volume=0.4&tTime=30&autostop=0[[BR]]
src 音频参数 | |
外部链接打开应用 | url: openapps://pcauto://xxx | |
广告点击统计 | adclick:本田广告 | |
写邮件 |
herf="mailto:abc@…]]
其中subject、和boby内 | |
锁屏旋转 | 锁屏:lockrotation:1[[BR]] 恢复:lockrotation:0 | |
app(非html)视频自动播放 |
abc.mp4/Y | |
传入页面url参数 | 设备 machine、设备方向 statusBarOrientation、方向 orientation、版本号 app_version、iOS系统 os_version、太平洋账号ID user_id | |
家居杂志安卓版JS回调app接口方法 | app: webView增加接口:addJavascriptInterface(toChild, "touchToChild");(tochild:接口对象,touchToChild:js回调接口对象名称) JS:JS端调用接口方法;window.touchToChild.changdChildTouchPermission(X);(X可以传值true或者false,true代表拦截app端触摸事件,将触控权限保留在JS端;false代表将触控权限交由给app端控 制) |
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)