• Skip to main content
  • Skip to search
  • Skip to select language
webdocs.dev
  • References
    • Overview / Web Technology

      Web technology reference for developers

    • HTML

      Structure of content on the web

    • CSS

      Code used to describe document style

    • JavaScript

      General-purpose scripting language

    • HTTP

      Protocol for transmitting web resources

    • Web APIs

      Interfaces for building web applications

    • Web Extensions

      Developing extensions for web browsers

    • Web Technology

      Web technology reference for developers

  • Guides
    • Overview / MDN Learning Area

      Learn web development

    • MDN Learning Area

      Learn web development

    • HTML

      Learn to structure web content with HTML

    • CSS

      Learn to style content using CSS

    • JavaScript

      Learn to run scripts in the browser

    • Accessibility

      Learn to make the web accessible to all

  • Play New
  1. References
  2. Web APIs
  3. Sensor
  4. stop()

In this article

  • Syntax
  • Examples
  • Specifications
  • Browser compatibility
  1. Sensor APIs
  2. Sensor
  3. Instance properties
    1. activated
    2. hasReading
    3. timestamp
  4. Instance methods
    1. start()
    2. stop()
  5. Events
    1. activate
    2. error
    3. reading
  6. Inheritance:
    1. EventTarget
  7. Related pages for Sensor API
    1. AbsoluteOrientationSensor
    2. Accelerometer
    3. AmbientLightSensor
    4. GravitySensor
    5. Gyroscope
    6. LinearAccelerationSensor
    7. Magnetometer
    8. OrientationSensor
    9. RelativeOrientationSensor
    10. SensorErrorEvent

In this article

  • Syntax
  • Examples
  • Specifications
  • Browser compatibility

Sensor: stop() method

The stop method of the Sensor interface deactivates the current sensor.

Syntax

js

stop()

Parameters

None.

Return value

None (undefined).

Examples

js

// TBD

Specifications

Specification
Generic Sensor API
# sensor-stop

Browser compatibility

Found a content problem with this page?

  • Edit the page on GitHub.
  • Report the content issue.
  • View the source on GitHub.
Want to get more involved? Learn how to contribute.

This page was last modified on Apr 8, 2023 by MDN contributors.

webdocs.dev
  • GitHub

Support

  • Report an issue

Our communities

  • Discord

Developers

  • Web Technologies
  • Learn Web Development

Portions of this content are ©1998–2025 by individual contributors. Content available under a Creative Commons license.