public class

KeyguardManager.KeyguardLock

extends Object
java.lang.Object
   ↳ android.app.KeyguardManager.KeyguardLock

Class Overview

Handle returned by newKeyguardLock(String) that allows you to disable / reenable the keyguard.

Summary

Public Methods
void disableKeyguard()
Disable the keyguard from showing.
void reenableKeyguard()
Reenable the keyguard.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void disableKeyguard ()

Since: API Level 1

Disable the keyguard from showing. If the keyguard is currently showing, hide it. The keyguard will be prevented from showing again until reenableKeyguard() is called. A good place to call this is from onResume() Note: This call has no effect while any DevicePolicyManager is enabled that requires a password.

public void reenableKeyguard ()

Since: API Level 1

Reenable the keyguard. The keyguard will reappear if the previous call to disableKeyguard() caused it it to be hidden. A good place to call this is from onPause() Note: This call has no effect while any DevicePolicyManager is enabled that requires a password.