Notification.Action.Builder.SetAuthenticationRequired(Boolean) 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.
Sets whether the OS should only send this action's PendingIntent on an unlocked device.
[Android.Runtime.Register("setAuthenticationRequired", "(Z)Landroid/app/Notification$Action$Builder;", "", ApiSince=31)]
public Android.App.Notification.Action.Builder SetAuthenticationRequired(bool authenticationRequired);
[<Android.Runtime.Register("setAuthenticationRequired", "(Z)Landroid/app/Notification$Action$Builder;", "", ApiSince=31)>]
member this.SetAuthenticationRequired : bool -> Android.App.Notification.Action.Builder
Parameters
- authenticationRequired
- Boolean
boolean
Returns
This Android.App.Notification.Action.Builder instance, allowing calls to be chained.
- Attributes
Remarks
Sets whether the OS should only send this action's PendingIntent on an unlocked device. If this is true and the device is locked when the action is invoked, the OS will show the keyguard and require successful authentication before invoking the intent. If this is false and the device is locked, the OS will decide whether authentication should be required.
Android reference for android.app.Notification.Action.Builder.setAuthenticationRequired.
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.