KeyguardManager.ExitKeyguardSecurely Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
deprecated
This method was deprecated in API level 15.
[Android.Runtime.Register("exitKeyguardSecurely", "(Landroid/app/KeyguardManager$OnKeyguardExitResult;)V", "GetExitKeyguardSecurely_Landroid_app_KeyguardManager_OnKeyguardExitResult_Handler")]
[Android.Runtime.RequiresPermission("android.permission.DISABLE_KEYGUARD")]
[System.Obsolete("deprecated")]
public virtual void ExitKeyguardSecurely(Android.App.KeyguardManager.IOnKeyguardExitResult? callback);
[<Android.Runtime.Register("exitKeyguardSecurely", "(Landroid/app/KeyguardManager$OnKeyguardExitResult;)V", "GetExitKeyguardSecurely_Landroid_app_KeyguardManager_OnKeyguardExitResult_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.DISABLE_KEYGUARD")>]
[<System.Obsolete("deprecated")>]
abstract member ExitKeyguardSecurely : Android.App.KeyguardManager.IOnKeyguardExitResult -> unit
override this.ExitKeyguardSecurely : Android.App.KeyguardManager.IOnKeyguardExitResult -> unit
Parameters
KeyguardManager.OnKeyguardExitResult: Lets you know whether the operation was successful and it is safe to launch anything that would normally be considered safe once the user has gotten past the keyguard.
- Attributes
Remarks
This method was deprecated in API level 15. Use R.attr.showWhenLocked or Activity.setShowWhenLocked(boolean) to seamlessly occlude and unocclude the keyguard as your application moves in and out of the foreground, without requiring any special permissions. Use requestDismissKeyguard(android.app.Activity,KeyguardDismissCallback) to request dismissal of the keyguard.
Exit the keyguard securely. The use case for this api is that, after disabling the keyguard, your app, which was granted permission to disable the keyguard and show a limited amount of information deemed safe without the user getting past the keyguard, needs to navigate to something that is not safe to view without getting past the keyguard. This will, if the keyguard is secure, bring up the unlock screen of the keyguard. Requires Manifest.permission.DISABLE_KEYGUARD
Android reference for android.app.KeyguardManager.exitKeyguardSecurely.
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.