public class CamLockerReceiver extends android.content.BroadcastReceiver implements MapEventDispatcher.MapEventDispatchListener, Marker.OnTrackChangedListener, MapItem.OnMetadataChangedListener, PointMapItem.OnPointChangedListener, android.content.SharedPreferences.OnSharedPreferenceChangeListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOCK_CAM |
static java.lang.String |
TAG |
static java.lang.String |
TOGGLE_LOCK |
static java.lang.String |
TOGGLE_LOCK_LONG_CLICK |
static java.lang.String |
UNLOCK_CAM |
Constructor and Description |
---|
CamLockerReceiver(MapView mapView) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
PointMapItem |
getLockedItem() |
boolean |
isLocked() |
void |
lockItem(PointMapItem pointItem) |
void |
onMapEvent(MapEvent event) |
void |
onMetadataChanged(MapItem item,
java.lang.String field) |
void |
onPanRequested() |
void |
onPointChanged(PointMapItem item) |
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
void |
onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences,
java.lang.String key) |
void |
onTrackChanged(Marker marker) |
void |
unlockItem(boolean center) |
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public static final java.lang.String TAG
public static final java.lang.String TOGGLE_LOCK
public static final java.lang.String TOGGLE_LOCK_LONG_CLICK
public static final java.lang.String LOCK_CAM
public static final java.lang.String UNLOCK_CAM
public CamLockerReceiver(MapView mapView)
public void onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences, java.lang.String key)
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener
public void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver
public void unlockItem(boolean center)
public void lockItem(PointMapItem pointItem)
public boolean isLocked()
public PointMapItem getLockedItem()
public void onTrackChanged(Marker marker)
onTrackChanged
in interface Marker.OnTrackChangedListener
public void onMetadataChanged(MapItem item, java.lang.String field)
onMetadataChanged
in interface MapItem.OnMetadataChangedListener
public void onPointChanged(PointMapItem item)
onPointChanged
in interface PointMapItem.OnPointChangedListener
public void onMapEvent(MapEvent event)
onMapEvent
in interface MapEventDispatcher.MapEventDispatchListener
public void onPanRequested()
public void dispose()