Unlock enum
Whether an intent can run while the device is locked (App Intents'
IntentAuthenticationPolicy).
@AssistantActionsApp(name: 'Journal', requiresUnlock: Unlock.required)
Values
- notRequired → const Unlock
-
It runs on a locked device too (
.alwaysAllowed, Apple's default). - required → const Unlock
-
The user unlocks the device first (
.requiresAuthentication). - onThisDevice → const Unlock
-
The user unlocks the device that runs it (
.requiresLocalDeviceAuthentication), so it can't run for a request from another device, such as a HomePod or a paired Apple Watch, while the iPhone is locked.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited