• Skip to main content
  • Skip to search
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web technology for developers
  2. Web APIs
  3. Sensor
  4. Sensor.stop()

Table of contents

  • Syntax
  • Example
  • Specifications
  • Browser compatibility

Sensor.stop()

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

Syntax

Sensor.stop()

Parameters

None.

Return value

undefined

Example

// TBD

Specifications

Specification Status Comment
Generic Sensor API
The definition of 'stop' in that specification.
Candidate Recommendation Initial definition.

Browser compatibility

BCD tables only load in the browser

Found a problem with this page?

  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Feb 19, 2021, by MDN contributors

Related Topics

  1. Sensor
  2. Properties
    1. activated
    2. hasReading
    3. onactivate
    4. onerror
    5. onreading
    6. timestamp
  3. Methods
    1. start()
    2. stop()
  4. Inheritance:
    1. EventTarget
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

Mozilla

© 2005-2021 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies