返回列表 发帖

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

wx.onUserCaptureScreen(CALLBACK)
基础库 1.4.0 开始支持,低版本需做兼容处理

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

CALLBACK返回参数:



示例代码:

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

返回列表