For AI agents: the complete documentation index is available at /apps-plugin/docs/llms.txt, the full documentation bundle is available at /apps-plugin/docs/llms-full.txt, and this page is available as Markdown at /apps-plugin/docs/js-api/device/gyroscope/stopGyroscope.md.

stopGyroscope

停止监听陀螺仪。

扫码预览

扫码预览 stopGyroscope

支持版本

前端库版本不低于 0.0.25。

支持平台

平台支持情况
Android支持
iOS支持
PC不支持
HarmonyOS不支持

支持场景

场景支持情况
页面支持
卡片不支持

接入准备

前置条件

  • 无额外前置条件;通常在 startGyroscope 后调用

使用说明

  • 未启动时调用也会直接成功,可用于安全清理监听状态

调用方式

异步 API

stopGyroscope(params?: object): Promise<object>

入参

无。

调用示例

import { stopGyroscope } from '@doubao-dev/framework/api';

await stopGyroscope();

成功返回

无返回字段。

返回示例

{}