public final class PasswordUI extends InternalUI implements DialogUIHandler
_appContext, _backgroundColor, _textColor, _typeFace, bgResourceId, logger, themeResId
Constructor and Description |
---|
PasswordUI(android.app.Activity activity,
boolean cachePIN)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
setBackgroundResource(int bgResourceId) |
static void |
setPasswordDialog(DialogUIHandler passwordDialog)
Set the dialog that will be shown in the PIN request.
|
static void |
setTheme(int themeResId) |
int |
showConfirmDialog(java.lang.String message)
Show the dialog requesting user confirmation.
|
char[] |
showPasswordDialog(int retries)
Show the dialog requesting the password.
|
getAppContext, getTextTypeFace, setAppContext, setBackgroundColor, setBackgroundColor, setTextColor, setTextColor, setTextTypeFace
public PasswordUI(android.app.Activity activity, boolean cachePIN)
activity
- application activity.cachePIN
- if the PIN must be cached for subsequent operations.public static void setTheme(int themeResId)
public static void setBackgroundResource(int bgResourceId)
public int showConfirmDialog(java.lang.String message)
DialogUIHandler
showConfirmDialog
in interface DialogUIHandler
message
- message to show.0
if user accepts or 1
if not.public char[] showPasswordDialog(int retries)
DialogUIHandler
showPasswordDialog
in interface DialogUIHandler
retries
- number of retries left.public static void setPasswordDialog(DialogUIHandler passwordDialog)
passwordDialog
- instance of the class that implements DialogUIHandler interface.