public class ChannelsOverlay extends AbstractMapOverlay2 implements CotServiceRemote.CotEventListener, ServerGroupsClient.ServerGroupsCallback
| Constructor and Description |
|---|
ChannelsOverlay(MapView mapView,
android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
static void |
displayOverlay(android.content.Context context) |
void |
dispose() |
static MapGroup |
getActiveGroupsMapGroup(MapView mapView)
Deprecated.
|
void |
getGroups(java.lang.String host,
boolean sendLatestSA) |
java.lang.String |
getIdentifier()
Returns the application unique identifier for the overlay.
|
static android.content.Intent |
getListIntent(android.content.Context context)
Helper Methods
|
HierarchyListItem |
getListModel(android.widget.BaseAdapter baseAdapter,
long capabilities,
HierarchyListFilter hierarchyListFilter)
Returns the model that may be used to build a UI to interact with the overlay.
|
java.lang.String |
getName()
Returns the name of the overlay.
|
static ChannelsOverlay |
getOverlay()
Deprecated.
|
DeepMapItemQuery |
getQueryFunction() |
MapGroup |
getRootGroup()
|
java.util.List<ServerGroupHierarchyListItem> |
getServerGroups(java.lang.String server) |
boolean |
isConnected(java.lang.String host) |
void |
onCotEvent(CotEvent event,
android.os.Bundle extra)
Callback for when a CoT event is received.
|
void |
onGetServerGroups(java.lang.String server,
java.util.List<ServerGroup> serverGroups) |
void |
setGroups(java.lang.String host)
Set the active/inactive groups on a given server
The operation is carried out asynchronously on a limiter thread
to prevent network spam
|
getListModelpublic ChannelsOverlay(MapView mapView, android.content.Context context)
public void dispose()
public java.lang.String getIdentifier()
MapOverlaygetIdentifier in interface MapOverlaypublic java.lang.String getName()
MapOverlaygetName in interface MapOverlaypublic void getGroups(java.lang.String host,
boolean sendLatestSA)
public boolean isConnected(java.lang.String host)
public void setGroups(java.lang.String host)
host - Server hostpublic void onGetServerGroups(java.lang.String server,
java.util.List<ServerGroup> serverGroups)
onGetServerGroups in interface ServerGroupsClient.ServerGroupsCallbackpublic java.util.List<ServerGroupHierarchyListItem> getServerGroups(java.lang.String server)
public static void displayOverlay(android.content.Context context)
public HierarchyListItem getListModel(android.widget.BaseAdapter baseAdapter, long capabilities, HierarchyListFilter hierarchyListFilter)
MapOverlay2null, the overlay
will not appear in the list.getListModel in interface MapOverlay2baseAdapter - A reference to the adapter that will be responsible for displaying the list.
The overlay may invoke BaseAdapter.notifyDataSetChanged()
if the list content is externally modified and the adapter should update.hierarchyListFilter - The preferred filter to be used when constructing the list view.
This argument is a hint and may be ignored in the event that executing the
specified filter will compromise performance. A filter with an ascending alphabetic sort is
recommended as the default.null if the
overlay should not be included in the list.public MapGroup getRootGroup()
MapOverlayMapGroup which will contain all
subgroups and MapItem instances for the overlay. This
method may return null to indicate that the overlay does not contain any content
that may be selected or interact with other map items.
getRootGroup in interface MapOverlaynull if the overlay does not contain
any selectable content.public DeepMapItemQuery getQueryFunction()
getQueryFunction in interface MapOverlaypublic static android.content.Intent getListIntent(android.content.Context context)
public void onCotEvent(CotEvent event, android.os.Bundle extra)
CotServiceRemote.CotEventListeneronCotEvent in interface CotServiceRemote.CotEventListenerevent - the cot event.extra - the bundle which contains information such as where it was from.@Deprecated public static ChannelsOverlay getOverlay()