uni.onUserCaptureScreen(callback?)
开启截屏监听
本 API 是 uni ext api,需下载插件:uni-usercapturescreen
Parameters
OnUserCaptureScreenCallbackResult Values
name | type | optinal | default | description |
path | string | NO | - | 截屏文件路径(仅Android返回) |
onUserCaptureScreen Compatibility
Android version | Android uni-app | Android uni-app-x | iOS version | iOS uni-app | iOS uni-app-x |
4.4.4 | 3.7.7 | 3.9.0 | 9.0 | 3.7.7 | 3.9.0 |
See also
onUserCaptureScreen
Related Bug
uni.offUserCaptureScreen(callback?)
关闭截屏监听
本 API 是 uni ext api,需下载插件:uni-usercapturescreen
Parameters
OnUserCaptureScreenCallbackResult Values
name | type | optinal | default | description |
path | string | NO | - | 截屏文件路径(仅Android返回) |
offUserCaptureScreen Compatibility
Android version | Android uni-app | Android uni-app-x | iOS version | iOS uni-app | iOS uni-app-x |
4.4.4 | 3.7.7 | 3.9.0 | 9.0 | 3.7.7 | 3.9.0 |
See also
offUserCaptureScreen
Related Bug
General type
GeneralCallbackResult
name | type | optinal | default | description |
errMsg | string | YES | - | 错误信息 |
tips
- 本文的截屏指手机自带的截屏事件的监听和取消监听,由用户操作手机按键触发。如需通过代码对view截屏,另见API takeSnapshot