public class DisplayCtrl
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUNDLE_ERROR_CODE |
static java.lang.String |
BUNDLE_ERROR_MSG |
static java.lang.String |
BUNDLE_GLOVE_MODE |
static java.lang.String |
ERROR_UNSUPPORTED |
static int |
RESULT_CODE_ERROR |
static int |
RESULT_CODE_SUCCESS |
static int |
SCREEN_ROTATION_AUTO |
static int |
SCREEN_ROTATION_DISABLE |
static int |
SCREEN_ROTATION_LANDSCAPE |
static int |
SCREEN_ROTATION_PORTRAIT |
static int |
SCREEN_ROTATION_REVERSE_LANDSCAPE |
static int |
SCREEN_ROTATION_REVERSE_PORTRAIT |
| Constructor and Description |
|---|
DisplayCtrl(android.content.Context context)
Instantiates a new Display ctrl.
|
| Modifier and Type | Method and Description |
|---|---|
android.os.Bundle |
DisableScreenLock()
Disable screen lock bundle.
|
android.os.Bundle |
GetDisplayTimeout()
Get display timeout.
|
android.os.Bundle |
GetFontSize()
Get font size bundle.
|
android.os.Bundle |
getGloveMode()
Get the glove mode status
|
android.os.Bundle |
GetScreenBacklightLevel()
Get screen backlight level bundle.
|
android.os.Bundle |
getScreenOrientation()
Get Screen Orientation
|
android.os.Bundle |
getScreenPixels()
Get Screen Pixels
|
android.os.Bundle |
GetStayAwake()
Get stay awake.
|
android.os.Bundle |
SetAutoBrightness(int mode)
Set auto brightness bundle.
|
android.os.Bundle |
SetAutoRotation(boolean enabled)
Set auto rotation bundle.
|
android.os.Bundle |
setDisplayBatteryPercentage(boolean enable)
Set Display BatteryPercentage .
|
android.os.Bundle |
SetDisplayTimeout(java.lang.String timeout)
Set display timeout.
|
android.os.Bundle |
SetFontSize(java.lang.String data)
Set font size.
|
android.os.Bundle |
setGloveMode(boolean enabled)
Enable / Disable the glove mode
|
android.os.Bundle |
SetScreenBacklightLevel(int value)
Set screen backlight level bundle.
|
android.os.Bundle |
SetScreenOrientation(int orientation)
Set screen orientation.
|
android.os.Bundle |
SetStayAwake(int input)
Set stay awake.
|
android.os.Bundle |
ShowLockScreenNotification(boolean show)
Set screen lock notification.
|
public static final java.lang.String BUNDLE_ERROR_CODE
public static final java.lang.String BUNDLE_ERROR_MSG
public static final java.lang.String ERROR_UNSUPPORTED
public static final java.lang.String BUNDLE_GLOVE_MODE
public static final int SCREEN_ROTATION_DISABLE
public static final int SCREEN_ROTATION_PORTRAIT
public static final int SCREEN_ROTATION_LANDSCAPE
public static final int SCREEN_ROTATION_REVERSE_PORTRAIT
public static final int SCREEN_ROTATION_REVERSE_LANDSCAPE
public static final int SCREEN_ROTATION_AUTO
public static final int RESULT_CODE_ERROR
public static final int RESULT_CODE_SUCCESS
public DisplayCtrl(android.content.Context context)
context - the contextpublic android.os.Bundle SetDisplayTimeout(java.lang.String timeout)
timeout - the timeout (String)
Timeout:
{"Never", "15 seconds", "30 seconds", "1 minute", "2 minutes", "5 minutes", "10 minutes", "30 minutes"}
OR
{NEVER, 15, 30, 60, 120, 300, 600, 1800}public android.os.Bundle GetDisplayTimeout()
public android.os.Bundle SetStayAwake(int input)
input - the input, "0:false, 1:true"public android.os.Bundle SetScreenOrientation(int orientation)
orientation - the screen orientation,
0:disable,
1:portrait,
2:landscape,
3:reverse portrait,
4:reverse landscape,
5:autopublic android.os.Bundle ShowLockScreenNotification(boolean show)
show - the notification, "false:hide, true:show"public android.os.Bundle GetStayAwake()
public android.os.Bundle SetFontSize(java.lang.String data)
data - fontSize, String, size: (small, default, large, largest)public android.os.Bundle GetFontSize()
public android.os.Bundle SetScreenBacklightLevel(int value)
value - the value, (0-255), PA768 min value is 1.public android.os.Bundle GetScreenBacklightLevel()
public android.os.Bundle SetAutoBrightness(int mode)
mode - the mode, 1:enable, 0:disablepublic android.os.Bundle DisableScreenLock()
public android.os.Bundle SetAutoRotation(boolean enabled)
enabled - true or false (boolean)public android.os.Bundle setDisplayBatteryPercentage(boolean enable)
enable - the enabledpublic android.os.Bundle getGloveMode()
public android.os.Bundle setGloveMode(boolean enabled)
enabled - true: The glove mode is enabled. false: The glove mode is disabledpublic android.os.Bundle getScreenPixels()
public android.os.Bundle getScreenOrientation()