Udostępnij za pośrednictwem


KeyguardManager.KeyguardLock.DisableKeyguard Method

Definition

Caution

deprecated

Disable the keyguard from showing.

[Android.Runtime.Register("disableKeyguard", "()V", "GetDisableKeyguardHandler")]
[System.Obsolete("deprecated")]
public virtual void DisableKeyguard ();
[<Android.Runtime.Register("disableKeyguard", "()V", "GetDisableKeyguardHandler")>]
[<System.Obsolete("deprecated")>]
abstract member DisableKeyguard : unit -> unit
override this.DisableKeyguard : unit -> unit
Attributes

Remarks

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

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

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