diff --git a/docs/api/_sidebar.md b/docs/api/_sidebar.md index 0e508807ebfb40c47b620e9eac6b592e96283272..35d9d51817d56958e8854ff2ac2ad7965799e512 100644 --- a/docs/api/_sidebar.md +++ b/docs/api/_sidebar.md @@ -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) diff --git a/docs/api/accelerometer.md b/docs/api/accelerometer.md new file mode 100644 index 0000000000000000000000000000000000000000..d5f0a41c81d8f04693314092ce0cd6d558874c9d --- /dev/null +++ b/docs/api/accelerometer.md @@ -0,0 +1,61 @@ +## uni.onAccelerometerChange(callback) @onaccelerometerchange + + + + + + + + + + + + + +## uni.offAccelerometerChange(callback) @offaccelerometerchange + + + + + + + + + + + + + +## uni.startAccelerometer(options) @startaccelerometer + + + + + + + + + + + + + +## uni.stopAccelerometer(options) @stopaccelerometer + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/api/location-change.md b/docs/api/location-change.md new file mode 100644 index 0000000000000000000000000000000000000000..ceebcc06b4bbe6aa8b13bb67c6164398167194ee --- /dev/null +++ b/docs/api/location-change.md @@ -0,0 +1,103 @@ +## uni.onLocationChange(callback) @onlocationchange + + + + + + + + + + + + + +## uni.offLocationChange(callback) @offlocationchange + + + + + + + + + + + + + +## uni.onLocationChangeError(callback) @onlocationchangeerror + + + + + + + + + + + + + +## uni.offLocationChangeError(callback) @offlocationchangeerror + + + + + + + + + + + + + +## uni.startLocationUpdate(options) @startlocationupdate + + + + + + + + + + + + + +## uni.stopLocationUpdate(options) @stoplocationupdate + + + + + + + + + + + + + +## uni.startLocationUpdateBackground(option) @startlocationupdatebackground + + + + + + + + + + + + + + + + + + \ No newline at end of file