java.lang.Object |
↳ |
com.samsung.android.knox.lockscreen.LockscreenOverlay.LSOEmergencyPhoneInfo |
Class Overview
This class defines the Lock Screen Overlay Emergency Phone information
and is given as an input parameter when configuring the lock screen
enterprise emergency phone number.
Summary
Fields |
public
int |
bottomPosition |
Image bottom position (in percent) with respect to lock screen. |
public
int |
gravity |
Emergency phone call Widget alignment option. |
public
String |
icon |
Icon file location. |
public
String |
phoneNumber |
Enterprise Emergency Phone Number. |
public
boolean |
showBackground |
Show/hide background. |
public
boolean |
showDefaultText |
Show/Hide default text when no text is set. |
public
String |
text |
Text to be shown. |
public
int |
topPosition |
Image starting/top position (in percent) with respect to lock screen. |
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Fields
public
int
bottomPosition
Since: API level 6
Image bottom position (in percent) with respect to lock screen.
public
int
gravity
Since: API level 6
Emergency phone call Widget alignment option.
Gravity.TOP/Gravity.BOTTOM/Gravity.CENTER/Gravity.LEFT/Gravity.RIGHT
Default is Gravity.CENTER.
See android.view.Gravity constants for different values.
public
String
phoneNumber
Since: API level 6
Enterprise Emergency Phone Number.
public
boolean
showBackground
Since: API level 6
Show/hide background. true
to show background, false
to hide
background. The default is true
.
public
boolean
showDefaultText
Since: API level 6
Show/Hide default text when no text is set. If the administrator does
not provide any text, default text is displayed. If this property is
set to false
, default text is not displayed. The default is false
.
public
int
topPosition
Since: API level 6
Image starting/top position (in percent) with respect to lock screen.
Public Constructors
public
LSOEmergencyPhoneInfo
(String phoneNumber)
Constructor with only phoneNumber as parameter. This constructor
initializes remaining class members to its default value.
Parameters
phoneNumber
| Enterprise emergency phone number. The value of
this parameter is assigned to phoneNumber . |
public
LSOEmergencyPhoneInfo
(String phoneNumber, String iconFilepath)
Overloaded Constructor with phone number and image file path as
parameter. This constructor initializes remaining class members to
its default value.
Parameters
phoneNumber
| Enterprise emergency phone number. The value of
this parameter is assigned to phoneNumber . |
iconFilepath
| Image file path. The value of this parameter is
assigned to icon . |
public
LSOEmergencyPhoneInfo
(String phoneNumber, int topPos, String iconFilepath, int bottomPos)
Overloaded Constructor with phone number, top position, bottom
position, and image file path as parameter. This constructor
initializes remaining class members to its default value.
Parameters
phoneNumber
| Enterprise emergency phone number. The value of
this parameter is assigned to phoneNumber . |
topPos
| Image top position (in percent). The value of this
parameter is assigned to topPosition . |
iconFilepath
| Image file path. The value of this parameter is
assigned to icon . |
bottomPos
| Image bottom position (in percent). The value of
this parameter is assigned to bottomPosition . |