You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<htmllang="en"><head><metacharset="utf-8"/><metahttp-equiv="X-UA-Compatible" content="IE=edge"/><title>API · React Native Sensors</title><metaname="viewport" content="width=device-width"/><metaname="generator" content="Docusaurus"/><metaproperty="og:title" content="API · React Native Sensors"/><metaproperty="og:type" content="website"/><metaproperty="og:url" content="https://react-native-sensors.github.io/index.html"/><metaproperty="og:description" content="We have two different APIs to provide the same functionality, one is **Default**, which is more verbose, the other one is **Decorator** which is a bit more elegant, but might be harder to read."/><linkrel="shortcut icon" href="/"/><linkrel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><scripttype="text/javascript" src="https://buttons.github.io/buttons.js"></script><linkrel="stylesheet" href="/css/main.css"/></head><bodyclass="sideNavVisible doc"><divclass="fixedHeaderContainer"><divclass="headerWrapper wrapper"><header><ahref="/"><h2class="headerTitle">React Native Sensors</h2></a><divclass="navigationWrapper navigationSlider"><navclass="slidingNav"><ulclass="nav-site nav-site-internal"><liclass="siteNavGroupActive"><ahref="/docs/GettingStarted.html" target="_self">Docs</a></li><liclass=""><ahref="https://github.com/react-native-sensors/react-native-sensors" target="_self">GitHub</a></li></ul></nav></div></header></div></div><divclass="navPusher"><divclass="docMainWrapper wrapper"><divclass="container docsNavContainer" id="docsNav"><navclass="toc"><divclass="toggleNav"><sectionclass="navWrapper wrapper"><divclass="navBreadcrumb wrapper"><divclass="navToggle" id="navToggler"><i></i></div><h2><i>›</i><span>API</span></h2></div><divclass="navGroups"><divclass="navGroup navGroupActive"><h3>Getting Started</h3><ul><liclass="navListItem"><aclass="navItem" href="/docs/Installation.html">Installation</a></li><liclass="navListItem"><aclass="navItem" href="/docs/GettingStarted.html">Getting Started</a></li></ul></div><divclass="navGroup navGroupActive"><h3>Usage</h3><ul><liclass="navListItem"><aclass="navItem" href="/docs/Usage.Default.html">Default Syntax</a></li><liclass="navListItem"><aclass="navItem" href="/docs/Usage.Decorator.html">Decorator Syntax</a></li></ul></div><divclass="navGroup navGroupActive"><h3>API</h3><ul><liclass="navListItem navListItemActive"><aclass="navItem navItemActive" href="/docs/API.html">API</a></li><liclass="navListItem"><aclass="navItem" href="/docs/Changelog.html">Changelog</a></li></ul></div></div></section></div><script>
2
+
vartoggler=document.getElementById('navToggler');
3
+
varnav=document.getElementById('docsNav');
4
+
toggler.onclick=function(){
5
+
nav.classList.toggle('docsSliderActive');
6
+
};
7
+
</script></nav></div><divclass="container mainContainer"><divclass="wrapper"><divclass="post"><headerclass="postHeader"><h1>API</h1></header><article><div><span><p>We have two different APIs to provide the same functionality, one is <strong>Default</strong>, which is more verbose, the other one is <strong>Decorator</strong> which is a bit more elegant, but might be harder to read.</p>
8
+
<p>Supported sensors:</p>
9
+
<ul>
10
+
<li>Accelerometer</li>
11
+
<li>Gyroscope</li>
12
+
<li>Magnetometer</li>
13
+
</ul>
14
+
<p>The API of each of them is the same, therefore you will just see Accelerometer in the docs:</p>
0 commit comments