Language

KeyStoreParameter.Builder.SetEncryptionRequired(Boolean) Method

Definition

Caution

deprecated

Sets whether the legacy screen-lock encryption requirement is used on Android 11 (API level 30) and earlier.

[Android.Runtime.Register("setEncryptionRequired", "(Z)Landroid/security/KeyStoreParameter$Builder;", "")]
[System.Obsolete("deprecated")]
public Android.Security.KeyStoreParameter.Builder SetEncryptionRequired(bool required);
[<Android.Runtime.Register("setEncryptionRequired", "(Z)Landroid/security/KeyStoreParameter$Builder;", "")>]
[<System.Obsolete("deprecated")>]
member this.SetEncryptionRequired : bool -> Android.Security.KeyStoreParameter.Builder

Parameters

required
Boolean

Whether to request the legacy screen-lock-based encryption requirement. This argument is ignored from Android 12 (API level 31).

Returns

This builder.

Attributes

Remarks

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