Condividi tramite


KeyguardManager.KeyguardLock.ReenableKeyguard Method

Definition

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 android.app.Activity#onPause()

Note: This call has no effect while any android.app.admin.DevicePolicyManager is enabled that requires a password.

Java documentation 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.

Applies to

See also