提交 65352589 编写于 作者: D DCloud_LXH

feat(api): accelerometer、location-change

上级 ff92e646
......@@ -56,6 +56,7 @@
* [打电话](make-phone-call.md)
* [剪切板](clipboard.md)
* [罗盘](compass.md)
* [加速度计](accelerometer.md)
* [wifi](wifi.md)
* [内存](memory.md)
* [截屏事件](capture-screen.md)
......@@ -72,6 +73,7 @@
* [获取视频信息](get-video-info.md)
* [压缩视频](compress-video.md)
* [音频](create-inner-audio-context.md)
* [背景音频](get-background-audio-manager.md)
* 画布
* [canvasToTempFilePath](canvas-to-temp-file-path.md)
* [createCanvasContextAsync](create-canvas-context-async.md)
......
## uni.onAccelerometerChange(callback) @onaccelerometerchange
<!-- UTSAPIJSON.onAccelerometerChange.description -->
<!-- UTSAPIJSON.onAccelerometerChange.compatibility -->
<!-- UTSAPIJSON.onAccelerometerChange.param -->
<!-- UTSAPIJSON.onAccelerometerChange.returnValue -->
<!-- UTSAPIJSON.onAccelerometerChange.example -->
<!-- UTSAPIJSON.onAccelerometerChange.tutorial -->
## uni.offAccelerometerChange(callback) @offaccelerometerchange
<!-- UTSAPIJSON.offAccelerometerChange.description -->
<!-- UTSAPIJSON.offAccelerometerChange.compatibility -->
<!-- UTSAPIJSON.offAccelerometerChange.param -->
<!-- UTSAPIJSON.offAccelerometerChange.returnValue -->
<!-- UTSAPIJSON.offAccelerometerChange.example -->
<!-- UTSAPIJSON.offAccelerometerChange.tutorial -->
## uni.startAccelerometer(options) @startaccelerometer
<!-- UTSAPIJSON.startAccelerometer.description -->
<!-- UTSAPIJSON.startAccelerometer.compatibility -->
<!-- UTSAPIJSON.startAccelerometer.param -->
<!-- UTSAPIJSON.startAccelerometer.returnValue -->
<!-- UTSAPIJSON.startAccelerometer.example -->
<!-- UTSAPIJSON.startAccelerometer.tutorial -->
## uni.stopAccelerometer(options) @stopaccelerometer
<!-- UTSAPIJSON.stopAccelerometer.description -->
<!-- UTSAPIJSON.stopAccelerometer.compatibility -->
<!-- UTSAPIJSON.stopAccelerometer.param -->
<!-- UTSAPIJSON.stopAccelerometer.returnValue -->
<!-- UTSAPIJSON.stopAccelerometer.example -->
<!-- UTSAPIJSON.stopAccelerometer.tutorial -->
<!-- UTSAPIJSON.accelerometer.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
\ No newline at end of file
## uni.onLocationChange(callback) @onlocationchange
<!-- UTSAPIJSON.onLocationChange.description -->
<!-- UTSAPIJSON.onLocationChange.compatibility -->
<!-- UTSAPIJSON.onLocationChange.param -->
<!-- UTSAPIJSON.onLocationChange.returnValue -->
<!-- UTSAPIJSON.onLocationChange.example -->
<!-- UTSAPIJSON.onLocationChange.tutorial -->
## uni.offLocationChange(callback) @offlocationchange
<!-- UTSAPIJSON.offLocationChange.description -->
<!-- UTSAPIJSON.offLocationChange.compatibility -->
<!-- UTSAPIJSON.offLocationChange.param -->
<!-- UTSAPIJSON.offLocationChange.returnValue -->
<!-- UTSAPIJSON.offLocationChange.example -->
<!-- UTSAPIJSON.offLocationChange.tutorial -->
## uni.onLocationChangeError(callback) @onlocationchangeerror
<!-- UTSAPIJSON.onLocationChangeError.description -->
<!-- UTSAPIJSON.onLocationChangeError.compatibility -->
<!-- UTSAPIJSON.onLocationChangeError.param -->
<!-- UTSAPIJSON.onLocationChangeError.returnValue -->
<!-- UTSAPIJSON.onLocationChangeError.example -->
<!-- UTSAPIJSON.onLocationChangeError.tutorial -->
## uni.offLocationChangeError(callback) @offlocationchangeerror
<!-- UTSAPIJSON.offLocationChangeError.description -->
<!-- UTSAPIJSON.offLocationChangeError.compatibility -->
<!-- UTSAPIJSON.offLocationChangeError.param -->
<!-- UTSAPIJSON.offLocationChangeError.returnValue -->
<!-- UTSAPIJSON.offLocationChangeError.example -->
<!-- UTSAPIJSON.offLocationChangeError.tutorial -->
## uni.startLocationUpdate(options) @startlocationupdate
<!-- UTSAPIJSON.startLocationUpdate.description -->
<!-- UTSAPIJSON.startLocationUpdate.compatibility -->
<!-- UTSAPIJSON.startLocationUpdate.param -->
<!-- UTSAPIJSON.startLocationUpdate.returnValue -->
<!-- UTSAPIJSON.startLocationUpdate.example -->
<!-- UTSAPIJSON.startLocationUpdate.tutorial -->
## uni.stopLocationUpdate(options) @stoplocationupdate
<!-- UTSAPIJSON.stopLocationUpdate.description -->
<!-- UTSAPIJSON.stopLocationUpdate.compatibility -->
<!-- UTSAPIJSON.stopLocationUpdate.param -->
<!-- UTSAPIJSON.stopLocationUpdate.returnValue -->
<!-- UTSAPIJSON.stopLocationUpdate.example -->
<!-- UTSAPIJSON.stopLocationUpdate.tutorial -->
## uni.startLocationUpdateBackground(option) @startlocationupdatebackground
<!-- UTSAPIJSON.startLocationUpdateBackground.description -->
<!-- UTSAPIJSON.startLocationUpdateBackground.compatibility -->
<!-- UTSAPIJSON.startLocationUpdateBackground.param -->
<!-- UTSAPIJSON.startLocationUpdateBackground.returnValue -->
<!-- UTSAPIJSON.startLocationUpdateBackground.example -->
<!-- UTSAPIJSON.startLocationUpdateBackground.tutorial -->
<!-- UTSAPIJSON.locationChange.example -->
<!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param -->
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册