public class LockScreenConfig extends Object
This is set during SdlManager instantiation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
LockScreenConfig.DisplayMode
DISPLAY_MODE_NEVER - The lock screen should never be shown.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DISPLAY_MODE_ALWAYS |
static int |
DISPLAY_MODE_NEVER |
static int |
DISPLAY_MODE_OPTIONAL_OR_REQUIRED |
static int |
DISPLAY_MODE_REQUIRED_ONLY |
| Constructor and Description |
|---|
LockScreenConfig() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
enableDismissGesture()
If true, then the lock screen can be dismissed with a downward swipe on compatible head units.
|
void |
enableDismissGesture(boolean enableDismissGesture)
If true, then the lock screen can be dismissed with a downward swipe on compatible head units.
|
int |
getAppIcon()
Gets the resource reference of the icon to be displayed on the lock screen
|
int |
getBackgroundColor()
Gets the int reference to the custom lock screen background color
|
int |
getCustomView()
Gets the reference to the custom lockscreen layout to be used
|
int |
getDisplayMode()
Get the displayMode to be used
|
boolean |
isDeviceLogoEnabled()
Get whether or not the device's Logo is shown on the default lock screen
The logo will come from the connected hardware, if set by the manufacturer |
void |
setAppIcon(int appIconInt)
int of the drawable icon.
|
void |
setBackgroundColor(int resourceColor)
Set the resource int of the background color.
|
void |
setCustomView(int customViewInt)
Sets the reference to the custom layout to be used for the lock screen
If set, the color and icon setters will be ignored |
void |
setDisplayMode(int displayMode)
Set the displayMode to be used
|
void |
showDeviceLogo(boolean deviceLogo)
Whether or not to show the device's logo on the default lock screen
The logo will come from the connected hardware, if set by the manufacturer If using a Custom View, this will be ignored. |
public static final int DISPLAY_MODE_NEVER
public static final int DISPLAY_MODE_REQUIRED_ONLY
public static final int DISPLAY_MODE_OPTIONAL_OR_REQUIRED
public static final int DISPLAY_MODE_ALWAYS
public void setBackgroundColor(int resourceColor)
resourceColor - resource int of the colorpublic int getBackgroundColor()
public void setAppIcon(int appIconInt)
appIconInt - the drawable of the icon to be displayed on the lock screenpublic int getAppIcon()
public void setCustomView(int customViewInt)
customViewInt - the layoutpublic int getCustomView()
public void showDeviceLogo(boolean deviceLogo)
deviceLogo - - booleanpublic boolean isDeviceLogoEnabled()
public void setDisplayMode(int displayMode)
displayMode - - Describes when the lock screen will be displayed. Defaults to `DISPLAY_MODE_REQUIRED_ONLY`.public int getDisplayMode()
public void enableDismissGesture(boolean enableDismissGesture)
enableDismissGesture - - enable or disable this featurepublic boolean enableDismissGesture()