public class MissionPackageMapComponent extends AbstractWidgetMapComponent implements CotServiceRemote.CotEventListener, MapEventDispatcher.MapEventDispatchListener
AbstractMapComponent.OnAllComponentsCreatedCallback
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
TAG |
static java.lang.String |
TOOL_NAME |
ROOT_LAYOUT_EXTRA
Constructor and Description |
---|
MissionPackageMapComponent() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkFileSharingEnabled() |
CotPortListActivity.CotPort[] |
getConnectedServers()
Get all connected TAK servers
|
java.lang.String |
getConnectedServerString() |
java.lang.String |
getConnectedServerUrl()
Get URL of (the first) connected TAK Server
If none, then take first server in list
If none, return null
|
MissionPackageFileIO |
getFileIO() |
static MissionPackageMapComponent |
getInstance() |
MissionPackagePreferenceListener |
getPrefListener() |
MissionPackageReceiver |
getReceiver() |
CotPortListActivity.CotPort[] |
getServers()
Get all configured TAK Servers
|
void |
onCotEvent(CotEvent event,
android.os.Bundle extra)
Callback for when a CoT event is received.
|
protected void |
onCreateWidgets(android.content.Context context,
android.content.Intent intent,
MapView mapView) |
protected void |
onDestroyWidgets(android.content.Context context,
MapView view) |
void |
onMapEvent(MapEvent event) |
getRootLayoutWidget, onCreate, onDestroyImpl
addOverlay, onConfigurationChanged, onCreateOptionsMenu, onDestroy, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onResume, onStart, onStop, registerReceiver, removeOverlay, setOnAllComponentsCreatedCallback, unregisterReceiver
public static final java.lang.String TOOL_NAME
protected static final java.lang.String TAG
public static MissionPackageMapComponent getInstance()
protected void onCreateWidgets(android.content.Context context, android.content.Intent intent, MapView mapView)
onCreateWidgets
in class AbstractWidgetMapComponent
public MissionPackageReceiver getReceiver()
public MissionPackageFileIO getFileIO()
public boolean checkFileSharingEnabled()
protected void onDestroyWidgets(android.content.Context context, MapView view)
onDestroyWidgets
in class AbstractWidgetMapComponent
public void onMapEvent(MapEvent event)
onMapEvent
in interface MapEventDispatcher.MapEventDispatchListener
public void onCotEvent(CotEvent event, android.os.Bundle extra)
CotServiceRemote.CotEventListener
onCotEvent
in interface CotServiceRemote.CotEventListener
event
- the cot event.extra
- the bundle which contains information such as where it was from.public MissionPackagePreferenceListener getPrefListener()
public java.lang.String getConnectedServerUrl()
public java.lang.String getConnectedServerString()
public CotPortListActivity.CotPort[] getServers()
public CotPortListActivity.CotPort[] getConnectedServers()