KeyguardManager.KeyguardLock.ReenableKeyguard Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
deprecated
Reenable the keyguard.
[Android.Runtime.Register("reenableKeyguard", "()V", "GetReenableKeyguardHandler")]
[System.Obsolete("deprecated")]
public virtual void ReenableKeyguard();
[<Android.Runtime.Register("reenableKeyguard", "()V", "GetReenableKeyguardHandler")>]
[<System.Obsolete("deprecated")>]
abstract member ReenableKeyguard : unit -> unit
override this.ReenableKeyguard : unit -> unit
- Attributes
Remarks
Reenable the keyguard. The keyguard will reappear if the previous call to disableKeyguard() caused it to be hidden. A good place to call this is from Activity.onPause() Requires Manifest.permission.DISABLE_KEYGUARD
See also:
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-08-03 UTC.
Android reference for android.app.KeyguardManager.KeyguardLock.reenableKeyguard.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.