capture-screen.md 1.4 KB
Newer Older
D
DCloud_LXH 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
## uni.onUserCaptureScreen(callback?) @onusercapturescreen

<!-- UTSAPIJSON.onUserCaptureScreen.description -->

<!-- UTSAPIJSON.onUserCaptureScreen.compatibility -->

<!-- UTSAPIJSON.onUserCaptureScreen.param -->

<!-- UTSAPIJSON.onUserCaptureScreen.returnValue -->

<!-- UTSAPIJSON.onUserCaptureScreen.tutorial -->

## uni.offUserCaptureScreen(callback?) @offusercapturescreen

<!-- UTSAPIJSON.offUserCaptureScreen.description -->

<!-- UTSAPIJSON.offUserCaptureScreen.compatibility -->

<!-- UTSAPIJSON.offUserCaptureScreen.param -->

<!-- UTSAPIJSON.offUserCaptureScreen.returnValue -->

<!-- UTSAPIJSON.offUserCaptureScreen.tutorial -->

<!-- UTSAPIJSON.general_type.name -->

<!-- UTSAPIJSON.general_type.param -->

D
DCloud_LXH 已提交
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49

## uni.setUserCaptureScreen(options) @setusercapturescreen

<!-- UTSAPIJSON.setUserCaptureScreen.description -->

<!-- UTSAPIJSON.setUserCaptureScreen.compatibility -->

<!-- UTSAPIJSON.setUserCaptureScreen.param -->

<!-- UTSAPIJSON.setUserCaptureScreen.returnValue -->

<!-- UTSAPIJSON.setUserCaptureScreen.example -->

<!-- UTSAPIJSON.setUserCaptureScreen.tutorial -->

<!-- UTSAPIJSON.captureScreen.example -->

<!-- UTSAPIJSON.general_type.name -->

<!-- UTSAPIJSON.general_type.param -->

D
DCloud_LXH 已提交
50
## tips
51
- 本文的截屏指手机自带的截屏事件的监听和取消监听,由用户操作手机按键触发。App平台如需通过代码对view截屏,另见API [takeSnapshot](../dom/unielement.md#takesnapshot)