public class VolumeSwitchManager
extends java.lang.Object
implements android.view.View.OnKeyListener
Modifier and Type | Class and Description |
---|---|
static interface |
VolumeSwitchManager.VolumeSwitchAction
If the volume switch is actively being intercepted by ATAK, the following method will be
called when the direction is UP or DOWN
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VOLUME_PRESS |
Modifier and Type | Method and Description |
---|---|
static VolumeSwitchManager |
getInstance(MapView mapView) |
boolean |
onKey(android.view.View v,
int keyCode,
android.view.KeyEvent event) |
void |
setActiveAdapter(LayerSelectionAdapter adapter) |
void |
setEnabled(boolean enabled)
if enabled, when the volume keys are pressed, the map manager will cycle through the map
list.
|
void |
setVolumeSwitchAction(VolumeSwitchManager.VolumeSwitchAction vsa)
Used to override the default behavior in of the volume switch in ATAK.
|
public static final java.lang.String VOLUME_PRESS
public void setVolumeSwitchAction(VolumeSwitchManager.VolumeSwitchAction vsa)
vsa
- volume switch action.public void setActiveAdapter(LayerSelectionAdapter adapter)
public static VolumeSwitchManager getInstance(MapView mapView)
public void setEnabled(boolean enabled)
enabled
- if the map manager will cycle through the layers.public boolean onKey(android.view.View v, int keyCode, android.view.KeyEvent event)
onKey
in interface android.view.View.OnKeyListener