public class TargetBubbleReceiver extends android.content.BroadcastReceiver implements MapWidget.OnClickListener, android.view.View.OnKeyListener, android.view.View.OnTouchListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FINE_ADJUST |
static java.lang.String |
GENERAL_ENTRY |
static java.lang.String |
MGRS_ENTRY |
Constructor and Description |
---|
TargetBubbleReceiver(MapView mapView) |
Modifier and Type | Method and Description |
---|---|
static TargetBubbleReceiver |
getInstance()
Obtain an instance of the TargetBubbleReceiver class used to register a different reticle tool
|
boolean |
onKey(android.view.View v,
int keyCode,
android.view.KeyEvent event) |
void |
onMapWidgetClick(MapWidget widget,
android.view.MotionEvent event) |
void |
onReceive(android.content.Context cxt,
android.content.Intent intent) |
protected void |
onTargetBubbleDismiss(GeoPointMetaData point) |
protected void |
onTargetBubbleDismiss(MapTargetBubble bubble) |
protected MapTargetBubble |
onTargetBubbleShow(MapView mapView,
android.content.Intent intent) |
boolean |
onTouch(android.view.View v,
android.view.MotionEvent event) |
void |
setExitReticleVisible(boolean state) |
void |
setTargetBubbleImpl(com.atakmap.android.targetbubble.TargetBubbleReceiver.TargetBubbleImpl tbi)
Sets a primary target bubble implementation that overrides the existing implementation.
|
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public static final java.lang.String FINE_ADJUST
public static final java.lang.String MGRS_ENTRY
public static final java.lang.String GENERAL_ENTRY
public TargetBubbleReceiver(MapView mapView)
public static TargetBubbleReceiver getInstance()
public void setTargetBubbleImpl(com.atakmap.android.targetbubble.TargetBubbleReceiver.TargetBubbleImpl tbi)
tbi
- The target bubble implementation to use, can be nullpublic void setExitReticleVisible(boolean state)
public void onMapWidgetClick(MapWidget widget, android.view.MotionEvent event)
onMapWidgetClick
in interface MapWidget.OnClickListener
public void onReceive(android.content.Context cxt, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver
protected MapTargetBubble onTargetBubbleShow(MapView mapView, android.content.Intent intent)
protected void onTargetBubbleDismiss(MapTargetBubble bubble)
protected void onTargetBubbleDismiss(GeoPointMetaData point)
public boolean onKey(android.view.View v, int keyCode, android.view.KeyEvent event)
onKey
in interface android.view.View.OnKeyListener
public boolean onTouch(android.view.View v, android.view.MotionEvent event)
onTouch
in interface android.view.View.OnTouchListener