MaxstARSDK  3.5.0
All Classes Functions Variables
SensorDevice.java
1 /*
2  * Copyright 2016 Maxst, Inc. All Rights Reserved.
3  */
4 package com.maxst.ar;
5 
9 public class SensorDevice {
10 
11  private static SensorDevice instance = null;
12 
13  public static SensorDevice getInstance() {
14  if (instance == null) {
15  instance = new SensorDevice();
16  }
17 
18  return instance;
19  }
20 
21  private SensorDevice() {}
22 
26  public void start() {
27  MaxstARJNI.startSensor();
28  }
29 
33  public void stop() {
34  MaxstARJNI.stopSensor();
35  }
36 }