Android Guides | Samples

Android.App.KeyguardManager Class

Class that can be used to lock and unlock the keyboard.

See Also: KeyguardManager

Syntax

[Android.Runtime.Register("android/app/KeyguardManager", DoNotGenerateAcw=true)]
public class KeyguardManager : Object

Remarks

Class that can be used to lock and unlock the keyboard. Get an instance of this class by calling Context.GetSystemService(String) with argument Context.KeyguardService. The actual class to control the keyboard locking is NoType:android/app/KeyguardManager$KeyguardLock;Href=../../../reference/android/app/KeyguardManager.KeyguardLock.html.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.App.KeyguardManager are listed below.

See Also: Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
IsKeyguardLockedBoolean. Return whether the keyguard is currently locked.
[read-only]
IsKeyguardSecureBoolean. Return whether the keyguard is secured by a PIN, pattern or password or a SIM card is currently locked.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

CreateConfirmDeviceCredentialIntent(ICharSequence, ICharSequence) : Intent
Get an intent to prompt the user to confirm credentials (pin, pattern or password) for the current user of the device.
CreateConfirmDeviceCredentialIntent(String, String) : Intent
ExitKeyguardSecurely(KeyguardManager+IOnKeyguardExitResult)
InKeyguardRestrictedInputMode() : Boolean
If keyguard screen is showing or in restricted key input mode (i.e. in keyguard password emergency screen).
NewKeyguardLock(String) : KeyguardManager+KeyguardLock