public class CoTAutoBroadcaster extends java.lang.Object implements android.content.SharedPreferences.OnSharedPreferenceChangeListener, MapEventDispatcher.MapEventDispatchListener
Modifier and Type | Class and Description |
---|---|
static interface |
CoTAutoBroadcaster.AutoBroadcastListener
Listen to changes to the markers currently being auto broadcasted.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
Modifier and Type | Method and Description |
---|---|
void |
addAutoBroadcastListener(CoTAutoBroadcaster.AutoBroadcastListener abl)
Add a listener for changes to which markers are auto broadcasted.
|
void |
addMarker(Marker m)
When the 'Broadcast' button
is toggled on, add the marker ID to
the marker list
|
static CoTAutoBroadcaster |
getInstance() |
boolean |
isBroadcast(Marker m)
Check to see if a marker
has broadcast 'on'
|
void |
onMapEvent(MapEvent event) |
void |
onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences,
java.lang.String key) |
void |
removeAutoBroadcastListener(CoTAutoBroadcaster.AutoBroadcastListener abl)
Remove a listener for changes to which markers are auto broadcasted.
|
void |
removeMarker(Marker m)
When the 'Broadcast' button
is toggled off, remove the marker
from the marker list.
|
public static final java.lang.String TAG
public void addAutoBroadcastListener(CoTAutoBroadcaster.AutoBroadcastListener abl)
abl
- the listener for the autobroadcast event.public void removeAutoBroadcastListener(CoTAutoBroadcaster.AutoBroadcastListener abl)
abl
- the listener for the autobroadcast event.public static CoTAutoBroadcaster getInstance()
public void addMarker(Marker m)
public void removeMarker(Marker m)
public boolean isBroadcast(Marker m)
m
- - the markerpublic void onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences, java.lang.String key)
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener
public void onMapEvent(MapEvent event)
onMapEvent
in interface MapEventDispatcher.MapEventDispatchListener