From 65352589cdeccb9656e18c28a9bec69d5c48b3d8 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Thu, 5 Dec 2024 20:04:30 +0800 Subject: [PATCH] =?UTF-8?q?feat(api):=20accelerometer=E3=80=81location-cha?= =?UTF-8?q?nge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/_sidebar.md | 2 + docs/api/accelerometer.md | 61 +++++++++++++++++++++ docs/api/location-change.md | 103 ++++++++++++++++++++++++++++++++++++ 3 files changed, 166 insertions(+) create mode 100644 docs/api/accelerometer.md create mode 100644 docs/api/location-change.md diff --git a/docs/api/_sidebar.md b/docs/api/_sidebar.md index 0e508807..35d9d518 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 00000000..d5f0a41c --- /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 00000000..ceebcc06 --- /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 -- GitLab