微信小程序API-设备-用户截屏事件

上传时间:2018-07-12阅读数:1447

wx.onUserCaptureScreen(CALLBACK)

基础库 1.4.0 开始支持,低版本需做兼容处理

监听用户主动截屏事件,用户使用系统截屏按键截屏时触发此事件

CALLBACK返回参数:

示例代码:

wx.onUserCaptureScreen(function(res) {
    console.log('用户截屏了')
})
目录