다음을 통해 공유


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.

This only works if the keyguard is not secure.

A good place to call this is from android.app.Activity#onResume()

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