Language

Control.StatefulBuilder.SetAuthRequired(Boolean) Method

Definition

Sets whether the control requires the device to be unlocked before interaction.

[Android.Runtime.Register("setAuthRequired", "(Z)Landroid/service/controls/Control$StatefulBuilder;", "", ApiSince=33)]
public Android.Service.Controls.Control.StatefulBuilder SetAuthRequired(bool authRequired);
[<Android.Runtime.Register("setAuthRequired", "(Z)Landroid/service/controls/Control$StatefulBuilder;", "", ApiSince=33)>]
member this.SetAuthRequired : bool -> Android.Service.Controls.Control.StatefulBuilder

Parameters

authRequired
Boolean

true if the control can not be interacted with until the device is unlocked

Returns

this This value cannot be null.

Attributes

Remarks

The system may require unlocking even when this value is false, depending on the user's lock-screen setting.

Android reference for android.service.controls.Control.StatefulBuilder.setAuthRequired.

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