public class CoTInfoBroadcastReceiver extends DropDownReceiver implements MapEventDispatcher.MapEventDispatchListener, DropDown.OnStateListener, android.view.View.OnClickListener, PointMapItem.OnPointChangedListener
Modifier and Type | Field and Description |
---|---|
protected android.content.SharedPreferences |
_prefs |
protected CoTInfoView |
civ |
static java.lang.String |
COTINFO_DETAILS |
protected PointMapItem |
targetPMI |
DROPDOWN_STATE_FULLSCREEN, DROPDOWN_STATE_NONE, DROPDOWN_STATE_NORMAL, FIVE_EIGTHS_HEIGHT, FIVE_EIGTHS_WIDTH, FIVE_TWELFTHS_HEIGHT, FIVE_TWELFTHS_WIDTH, FULL_HEIGHT, FULL_WIDTH, HALF_HEIGHT, HALF_WIDTH, HANDLE_THICKNESS_LANDSCAPE, HANDLE_THICKNESS_PORTRAIT, NO_HEIGHT, NO_WIDTH, QUARTER_SCREEN, SEVEN_SIXTEENTH_WIDTH, THIRD_HEIGHT, THIRD_WIDTH, THREE_EIGHTHS_HEIGHT, THREE_EIGHTHS_WIDTH, TWO_THIRDS_HEIGHT, TWO_THIRDS_WIDTH
Constructor and Description |
---|
CoTInfoBroadcastReceiver(MapView mapView) |
Modifier and Type | Method and Description |
---|---|
void |
disposeImpl()
Any drop down specific disposal implementation that is performed during the
disposal of a drop down.
|
protected PointMapItem |
findTarget(java.lang.String targetUID) |
protected boolean |
onBackButtonPressed()
For a dropdown that has told the drop down manager to ignore the back button.
|
void |
onClick(android.view.View v) |
void |
onDropDownClose() |
void |
onDropDownSelectionRemoved() |
void |
onDropDownSizeChanged(double width,
double height) |
void |
onDropDownVisible(boolean v) |
void |
onMapEvent(MapEvent event) |
void |
onPointChanged(PointMapItem item) |
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
static void |
promptSendAttachments(MapItem marker,
java.lang.String onReceiveAction,
java.lang.Runnable onApprove,
java.lang.Runnable onDeny)
Prompt the user with the option to include marker attachments
|
protected void |
sendCoT(java.lang.String uid) |
void |
setType(java.lang.String type) |
_showDropDown, callResize, closeDropDown, dispose, dropDownAlreadyExists, getAssociationKey, getBackStackCount, getDropDown, getMapView, hideDropDown, isClosed, isPortrait, isRetained, isTablet, isTransient, isVisible, onStateRequested, resize, setAssociationKey, setRetain, setSelected, setSelected, setSelected, setTransient, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, unhideDropDown
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public static final java.lang.String COTINFO_DETAILS
protected CoTInfoView civ
protected PointMapItem targetPMI
protected final android.content.SharedPreferences _prefs
public CoTInfoBroadcastReceiver(MapView mapView)
public void disposeImpl()
DropDownReceiver
disposeImpl
in class DropDownReceiver
public void onPointChanged(PointMapItem item)
onPointChanged
in interface PointMapItem.OnPointChangedListener
public void onMapEvent(MapEvent event)
onMapEvent
in interface MapEventDispatcher.MapEventDispatchListener
public void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver
public void onClick(android.view.View v)
onClick
in interface android.view.View.OnClickListener
protected void sendCoT(java.lang.String uid)
public void setType(java.lang.String type)
protected boolean onBackButtonPressed()
DropDownReceiver
onBackButtonPressed
in class DropDownReceiver
public void onDropDownSelectionRemoved()
onDropDownSelectionRemoved
in interface DropDown.OnStateListener
public void onDropDownVisible(boolean v)
onDropDownVisible
in interface DropDown.OnStateListener
public void onDropDownSizeChanged(double width, double height)
onDropDownSizeChanged
in interface DropDown.OnStateListener
public void onDropDownClose()
onDropDownClose
in interface DropDown.OnStateListener
protected PointMapItem findTarget(java.lang.String targetUID)
public static void promptSendAttachments(MapItem marker, java.lang.String onReceiveAction, java.lang.Runnable onApprove, java.lang.Runnable onDeny)
marker
- Marker to sendonReceiveAction
- Optional receive callbackonApprove
- Callback to fire when including attachmentsonDeny
- Callback to fire when not including attachments