共用方式為


KeyguardManager.NewKeyguardLock(String) Method

Definition

Caution

deprecated

Enables you to lock or unlock the keyguard.

[Android.Runtime.Register("newKeyguardLock", "(Ljava/lang/String;)Landroid/app/KeyguardManager$KeyguardLock;", "GetNewKeyguardLock_Ljava_lang_String_Handler")]
[System.Obsolete("deprecated")]
public virtual Android.App.KeyguardManager.KeyguardLock? NewKeyguardLock (string? tag);
[<Android.Runtime.Register("newKeyguardLock", "(Ljava/lang/String;)Landroid/app/KeyguardManager$KeyguardLock;", "GetNewKeyguardLock_Ljava_lang_String_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member NewKeyguardLock : string -> Android.App.KeyguardManager.KeyguardLock
override this.NewKeyguardLock : string -> Android.App.KeyguardManager.KeyguardLock

Parameters

tag
String

A tag that informally identifies who you are (for debugging who is disabling the keyguard).

Returns

A KeyguardLock handle to use to disable and reenable the keyguard.

Attributes

Remarks

Java documentation for android.app.KeyguardManager.newKeyguardLock(java.lang.String).

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