public class TencentDirectionProvider
extends java.lang.Object
implements android.hardware.SensorEventListener
限定符和类型 | 字段和说明 |
---|---|
static int |
DIRECTION_ACC_HIGH |
static int |
DIRECTION_ACC_LOW |
static int |
DIRECTION_ACC_MEDIUM |
限定符和类型 | 方法和说明 |
---|---|
static TencentDirectionProvider |
getInstance(android.content.Context context) |
boolean |
isCallBackThisHeading(com.tencent.map.fusionlocation.model.TencentLocationDirection newDirection) |
void |
onAccuracyChanged(android.hardware.Sensor sensor,
int accuracy) |
void |
onSensorChanged(android.hardware.SensorEvent event) |
void |
shutdown() |
void |
startup(com.tencent.map.fusionlocation.listener.TencentLocationDirectionListener listener,
android.os.Handler handler) |
public static final int DIRECTION_ACC_HIGH
public static final int DIRECTION_ACC_MEDIUM
public static final int DIRECTION_ACC_LOW
public static TencentDirectionProvider getInstance(android.content.Context context)
public void startup(com.tencent.map.fusionlocation.listener.TencentLocationDirectionListener listener, android.os.Handler handler)
public void shutdown()
public void onSensorChanged(android.hardware.SensorEvent event)
onSensorChanged
在接口中 android.hardware.SensorEventListener
public void onAccuracyChanged(android.hardware.Sensor sensor, int accuracy)
onAccuracyChanged
在接口中 android.hardware.SensorEventListener
public boolean isCallBackThisHeading(com.tencent.map.fusionlocation.model.TencentLocationDirection newDirection)