Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SensorData.java « location « maps « mapswithme « com « src « android - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 72720f9d386f02cc8b12a33e69c3b1cefda228da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.mapswithme.maps.location;

import androidx.annotation.Nullable;

class SensorData
{
  @Nullable
  private float[] mGravity;
  @Nullable
  private float[] mGeomagnetic;

  @Nullable
  public float[] getGravity()
  {
    return mGravity;
  }

  public void setGravity(@Nullable float[] gravity)
  {
    mGravity = gravity;
  }

  @Nullable
  public float[] getGeomagnetic()
  {
    return mGeomagnetic;
  }

  public void setGeomagnetic(@Nullable float[] geomagnetic)
  {
    mGeomagnetic = geomagnetic;
  }

  public boolean isAbsent()
  {
    return mGravity == null || mGeomagnetic == null;
  }
}