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 ()

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()

public void reenableKeyguard ()

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()