# wx.onUserCaptureScreen(function callback)

Start from base library version 1.4.0. Please remaining backward compatible.

with Promise style call: Not supported

Mini Program plugin: Not supported

Monitor the user active screenshot event. Users use the system screenshot on when the trigger screen capture, can only register a monitor

# parameter

# function callback

Callback function for user active screenshot event

# sample code

wx.onUserCaptureScreen(function (res) {
  console.log("User screenshot.")