|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.app.KeyguardManager
public class KeyguardManager
Class that can be used to lock and unlock the keyboard. Get an instance of this
class by calling Context.getSystemService(java.lang.String)
with argument Context.KEYGUARD_SERVICE. The
Actual class to control the keyboard locking is
KeyguardManager.KeyguardLock.
| Nested Class Summary | |
|---|---|
class |
KeyguardManager.KeyguardLock
Handle returned by newKeyguardLock(java.lang.String) that allows
you to disable / reenable the keyguard. |
static interface |
KeyguardManager.OnKeyguardExitResult
Callback passed to exitKeyguardSecurely(android.app.KeyguardManager.OnKeyguardExitResult) to notify
caller of result. |
| Constructor Summary | |
|---|---|
KeyguardManager()
|
|
| Method Summary | |
|---|---|
void |
exitKeyguardSecurely(KeyguardManager.OnKeyguardExitResult callback)
Exit the keyguard securely. |
boolean |
inKeyguardRestrictedInputMode()
If keyguard screen is showing or in restricted key input mode (i.e. |
KeyguardManager.KeyguardLock |
newKeyguardLock(String tag)
Enables you to lock or unlock the keyboard. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
KeyguardManager()
| Method Detail |
|---|
public KeyguardManager.KeyguardLock newKeyguardLock(String tag)
Context.getSystemService().
This class is wrapped by KeyguardManager.
tag - A tag that informally identifies who you are (for debugging who
is disabling he keyguard).
KeyguardManager.KeyguardLock handle to use to disable and reenable the
keyguard.public boolean inKeyguardRestrictedInputMode()
WindowManagerPolicy.inKeyguardRestrictedKeyInputMode()public void exitKeyguardSecurely(KeyguardManager.OnKeyguardExitResult callback)
callback - Let's you know whether the operation was succesful and
it is safe to launch anything that would normally be considered safe
once the user has gotten past the keyguard.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||