public class BrightnessReceiver extends android.content.BroadcastReceiver implements SeekBarControl.Subject
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.atomic.AtomicInteger |
_brightness |
protected com.atakmap.android.brightness.BrightnessOverlay |
_brightnessOverlay |
protected MapView |
_mapView |
protected boolean |
_showingControl |
static java.lang.String |
BRIGHT_PREF |
static int |
MAX_BRIGHTNESS_MAGNITUDE |
protected static java.lang.String |
NAV_REF |
| Constructor and Description |
|---|
BrightnessReceiver(MapView mapView) |
| Modifier and Type | Method and Description |
|---|---|
void |
dismiss() |
int |
getValue()
Returns the current value,
0 through 100,
inclusive. |
protected void |
hideControl() |
void |
onControlDismissed()
Invoked when the control is dismissed or otherwise switches to a new
subject.
|
void |
onReceive(android.content.Context ctx,
android.content.Intent intent) |
void |
setValue(int value)
Sets the current value,
0 through 100,
inclusive. |
protected void |
toggleBrightnessControl() |
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtraspublic static final int MAX_BRIGHTNESS_MAGNITUDE
public static final java.lang.String BRIGHT_PREF
protected static final java.lang.String NAV_REF
protected final MapView _mapView
protected com.atakmap.android.brightness.BrightnessOverlay _brightnessOverlay
protected boolean _showingControl
protected java.util.concurrent.atomic.AtomicInteger _brightness
public BrightnessReceiver(MapView mapView)
public void onReceive(android.content.Context ctx,
android.content.Intent intent)
onReceive in class android.content.BroadcastReceiverpublic void dismiss()
protected void toggleBrightnessControl()
protected void hideControl()
public int getValue()
SeekBarControl.Subject0 through 100,
inclusive.getValue in interface SeekBarControl.Subjectpublic void setValue(int value)
SeekBarControl.Subject0 through 100,
inclusive.setValue in interface SeekBarControl.Subjectpublic void onControlDismissed()
SeekBarControl.SubjectonControlDismissed in interface SeekBarControl.Subject