Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca3b4e9b authored by Scott Main's avatar Scott Main
Browse files

remove significant motion

Change-Id: I764d7253d9eb4aa9f7e94f5628a29f648fd9811b
parent 1be76349
Loading
Loading
Loading
Loading
+0 −9
Original line number Original line Diff line number Diff line
@@ -62,7 +62,6 @@ sdk.platform.apiLevel=18
  </li>
  </li>
  <li><a href="#UserInput">User Input</a>
  <li><a href="#UserInput">User Input</a>
    <ol>
    <ol>
      <li><a href="#SignificantMotion">Detect significant motion</a></li>
      <li><a href="#Sensors">New sensor types</a></li>
      <li><a href="#Sensors">New sensor types</a></li>
    </ol>
    </ol>
  </li>
  </li>
@@ -848,14 +847,6 @@ protected void onCreate(Bundle savedInstanceState) {


<h2 id="UserInput">User Input</h2>
<h2 id="UserInput">User Input</h2>


<h3 id="SignificantMotion">Detect significant motion</h3>

<p>The {@link android.hardware.SensorManager} APIs now allow you to request a callback when the
device sensors detect "significant motion." For instance, this event may be triggered by new
motion such as when the user starts to walk.</p>

<p>To register a listener for significant motion, extend the {@link android.hardware.TriggerEventListener} class and implement the {@link android.hardware.TriggerEventListener#onTrigger onTrigger()} callback method. Then register your event listener with the {@link android.hardware.SensorManager} by passing it to {@link android.hardware.SensorManager#requestTriggerSensor requestTriggerSensor()}, passing it your {@link android.hardware.TriggerEventListener} and {@link android.hardware.Sensor#TYPE_SIGNIFICANT_MOTION}.</p>

<h3 id="Sensors">New sensor types</h3>
<h3 id="Sensors">New sensor types</h3>
<p>The new {@link android.hardware.Sensor#TYPE_GAME_ROTATION_VECTOR} sensor allows you to detect the device's rotations without worrying about magnetic interferences. Unlike the {@link android.hardware.Sensor#TYPE_ROTATION_VECTOR} sensor, the {@link android.hardware.Sensor#TYPE_GAME_ROTATION_VECTOR} is not based on magnetic north.</p>
<p>The new {@link android.hardware.Sensor#TYPE_GAME_ROTATION_VECTOR} sensor allows you to detect the device's rotations without worrying about magnetic interferences. Unlike the {@link android.hardware.Sensor#TYPE_ROTATION_VECTOR} sensor, the {@link android.hardware.Sensor#TYPE_GAME_ROTATION_VECTOR} is not based on magnetic north.</p>