UserManager.SetRestrictionsChallenge(String) Method

Definition

Caution

deprecated

Sets a new challenge PIN for restrictions.

[Android.Runtime.Register("setRestrictionsChallenge", "(Ljava/lang/String;)Z", "GetSetRestrictionsChallenge_Ljava_lang_String_Handler")]
[System.Obsolete("deprecated")]
public virtual bool SetRestrictionsChallenge (string? newPin);
[<Android.Runtime.Register("setRestrictionsChallenge", "(Ljava/lang/String;)Z", "GetSetRestrictionsChallenge_Ljava_lang_String_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member SetRestrictionsChallenge : string -> bool
override this.SetRestrictionsChallenge : string -> bool

Parameters

newPin
String

the PIN to use for challenge dialogs.

Returns

Boolean

Returns true if the challenge PIN was set successfully.

Attributes

Remarks

Java documentation for android.os.UserManager.setRestrictionsChallenge(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