public abstract class ModDisplay extends Object
You do not instantiate this class directly; instead, retrieve it through
ModManager.getClassManager(device, ModDisplay.class)
.
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_DISPLAY_OFF
Broadcast action: sent when the external display on the
Moto Mod is turned off.
|
static String |
ACTION_DISPLAY_ON
Broadcast action which will be sent when the external
display on the Moto Mod is turned on.
|
static int |
STATE_OFF
The Moto Mod Display state is OFF
|
static int |
STATE_ON
The Moto Mod Display state is ON
|
static int |
STATE_UNKNOWN
The Moto Mod Display state is UNKNOWN
|
Constructor and Description |
---|
ModDisplay() |
Modifier and Type | Method and Description |
---|---|
abstract int |
getModDisplayState()
Gets the state of the Moto Mod display.
|
abstract boolean |
setModDisplayState(int state)
Sets the state of the Moto Mod display.
|
public static final int STATE_UNKNOWN
public static final int STATE_OFF
public static final int STATE_ON
public static final String EXTRA_POWER_MODE
public static final String ACTION_DISPLAY_ON
ModDisplay.EXTRA_POWER_MODE
,public static final String ACTION_DISPLAY_OFF
public abstract boolean setModDisplayState(int state)
state
- Must be one of ModDisplay.STATE_OFF
,
ModDisplay.STATE_ON
.public abstract int getModDisplayState()
ModDisplay.STATE_OFF
,
ModDisplay.STATE_ON
or ModDisplay.STATE_UNKNOWN
.(c) 2016 Motorola Mobility LLC. All Rights Reserved
MOTOROLA and the Stylized M Logo are registered trademarks of Motorola Trademark Holdings, LLC
Android, Google, Google Play, Nexus and other marks are trademarks of Google Inc.