blob: 6bd3329da85c70611b6d78521f55e481e713df9d (
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
39
40
41
42
43
|
package com.mapswithme.maps;
public class LocationState
{
/// These values should correspond to values of
/// location::ELocationProcessMode defined in map/location_state.hpp
public static final int LOCATION_DO_NOTHING = 0;
public static final int LOCATION_CENTER_AND_SCALE = 1;
public static final int LOCATION_CENTER_ONLY = 2;
/// These values should correspond to values of
/// location::ECompassProcessMode defined in map/location_state.hpp
public static final int COMPASS_DO_NOTHING = 0;
public static final int COMPASS_FOLLOW = 1;
public native int getCompassProcessMode();
public native void setCompassProcessMode(int mode);
public native int getLocationProcessMode();
public native void setLocationProcessMode(int mode);
public native void startCompassFollowing();
public native void stopCompassFollowing();
public native void stopCompassFollowingAndRotateMap();
public native int addCompassStatusListener(Object l);
public native void removeCompassStatusListener(int slotID);
public native void onStartLocation();
public native void onStopLocation();
public native boolean hasPosition();
public native boolean hasCompass();
public native boolean isFirstPosition();
public native boolean isCentered();
public native void animateToPositionAndEnqueueLocationProcessMode(int mode);
public native void turnOff();
public native boolean isVisible();
}
|