xwt
3 天以前 0d3eadb50310ca60b8871e967e64da01aa25a9ad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
declare namespace UniNamespace {
  type OnUserCaptureScreenCallback = (res?: { errMsg: string }) => void;
}
 
interface Uni {
  /**
   * 监听用户主动截屏事件,用户使用系统截屏按键截屏时触发此事件。
   *
   * 文档: [https://uniapp.dcloud.net.cn/api/system/capture-screen.html#onusercapturescreen](https://uniapp.dcloud.net.cn/api/system/capture-screen.html#onusercapturescreen)
   */
  onUserCaptureScreen(callback: UniNamespace.OnUserCaptureScreenCallback): void;
  /**
   * 用户主动截屏事件。取消事件监听。
   *
   * 文档: [https://uniapp.dcloud.net.cn/api/system/capture-screen.html#offusercapturescreen](https://uniapp.dcloud.net.cn/api/system/capture-screen.html#offusercapturescreen)
   */
  offUserCaptureScreen(callback: UniNamespace.OnUserCaptureScreenCallback): void;
}