public final class PasswordUI extends java.lang.Object implements DialogUIHandler
| Constructor and Description |
|---|
PasswordUI(android.content.Context context,
boolean cachePIN)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static android.content.Context |
getAppContext()
Return application context.
|
static void |
setAppContext(android.content.Context context)
Set application context.
|
void |
setBackgroundColor(int color)
Set background color for layout of the dialog.
|
void |
setBackgroundColor(java.lang.String color)
Set background color for layout of the dialog.
|
static void |
setPasswordDialog(DialogUIHandler passwordDialog)
Set the dialog that will be shown in the PIN request.
|
void |
setTextColor(int color)
Set text color for the text component of the dialog.
|
void |
setTextColor(java.lang.String color)
Set text color for the text component of the dialog.
|
void |
setTextTypeFace(android.graphics.Typeface typeFace)
Set resource TypeFace for the text component of the dialog.
|
int |
showConfirmDialog(java.lang.String message)
Show the dialog requesting user confirmation.
|
char[] |
showPasswordDialog(int retries)
Show the dialog requesting the password.
|
public PasswordUI(android.content.Context context,
boolean cachePIN)
context - application context.cachePIN - if the PIN must be cached for subsequent operations.public static void setPasswordDialog(DialogUIHandler passwordDialog)
passwordDialog - instance of the class that implements DialogUIHandler interface.public int showConfirmDialog(java.lang.String message)
DialogUIHandlershowConfirmDialog in interface DialogUIHandlermessage - message to show.0 if user accepts or 1 if not.public char[] showPasswordDialog(int retries)
DialogUIHandlershowPasswordDialog in interface DialogUIHandlerretries - number of retries left.public static android.content.Context getAppContext()
public static void setAppContext(android.content.Context context)
context - Context of the application.public void setBackgroundColor(int color)
color - int value in the form 0xAARRGGBB.public void setBackgroundColor(java.lang.String color)
color - string name of the color.public void setTextColor(int color)
color - int value in the form 0xAARRGGBB.public void setTextColor(java.lang.String color)
color - string name of the color.public void setTextTypeFace(android.graphics.Typeface typeFace)
typeFace - typeFace instance.