public class TaskCotReceiver extends android.content.BroadcastReceiver implements MapEventDispatcher.MapEventDispatchListener, CotServiceRemote.ConnectionListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG |
| Constructor and Description |
|---|
TaskCotReceiver(android.content.Context context,
MapView view) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
void |
onCotServiceConnected(android.os.Bundle fullServiceState) |
void |
onCotServiceDisconnected() |
void |
onMapEvent(MapEvent event) |
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtraspublic static final java.lang.String TAG
public TaskCotReceiver(android.content.Context context,
MapView view)
public void onCotServiceConnected(android.os.Bundle fullServiceState)
onCotServiceConnected in interface CotServiceRemote.ConnectionListenerfullServiceState - (Bundle[]) fullServiceState.getParcelableArray("streams") which appears to be and array of
all of the current TAK servers bundle made up of CotPort.DESCRIPTION_KEY,
CotPort.ENABLED_KEY, CotPort.CONNECTED_KEY
lifted from CotStreamListener
fullServiceState can also contain
(Bundle[]) fullServiceState.getParcelableArray(getPortType()) which follows the same rules
above.
lifted from CotPortListActivitypublic void onCotServiceDisconnected()
onCotServiceDisconnected in interface CotServiceRemote.ConnectionListenerpublic void dispose()
public void onReceive(android.content.Context context,
android.content.Intent intent)
onReceive in class android.content.BroadcastReceiverpublic void onMapEvent(MapEvent event)
onMapEvent in interface MapEventDispatcher.MapEventDispatchListener