微信小程序
wx.getScreenRecordingState
# wx.getScreenRecordingState(Object object)
基础库 2.24.0 开始支持,低版本需做兼容处理。
以 Promise 风格 调用:不支持
小程序插件:不支持
微信 iOS 版:支持
微信 Android 版:不支持
# 功能描述
查询用户是否在录屏。
# 参数
# Object object
# object.success 回调函数
# 参数
# Object res
# 示例代码
wx.getScreenRecordingState({
success: function (res) {
console.log(res.state)
},
})