EnableFeatureAction
An action that enables features. Running the action with value FEATURE_LOCATION or FEATURE_BACKGROUND_LOCATION will prompt the user for permissions before enabling.
Accepted situations: SITUATION_PUSH_OPENED, SITUATION_WEB_VIEW_INVOCATION, SITUATION_MANUAL_INVOCATION, SITUATION_AUTOMATION, and SITUATION_FOREGROUND_NOTIFICATION_ACTION_BUTTON.
Accepted argument value - either FEATURE_USER_NOTIFICATIONS, FEATURE_BACKGROUND_LOCATION, or FEATURE_LOCATION.
Result value: true
if the feature was enabled, otherwise false
.
Default Registration Names: DEFAULT_REGISTRY_NAME, DEFAULT_REGISTRY_SHORT_NAME
Constructors
Link copied to clipboard
constructor(@NonNull permissionsManagerSupplier: Supplier<PermissionsManager>, @NonNull locationClientSupplier: Supplier<AirshipLocationClient>)
constructor()
Properties
Link copied to clipboard
Default registry name
Link copied to clipboard
Default registry short name
Link copied to clipboard
Action value to enable location with background updates.
Link copied to clipboard
Action value to enable location.
Link copied to clipboard
Action value to enable user notifications.
Inherited properties
Link copied to clipboard
Resulting permission status key when using a result receiver.
Link copied to clipboard
The starting permission status key when using a result receiver.
Link copied to clipboard
Default registry name
Link copied to clipboard
Default registry short name
Link copied to clipboard
Enable airship usage argument key.
Link copied to clipboard
Fallback system settings argument key.
Link copied to clipboard
Permission argument key.
Link copied to clipboard
Permissions result key when using a result receiver.
Link copied to clipboard
Metadata key for a result receiver.
Link copied to clipboard
Situation where an action is triggered from Action Automation.
Link copied to clipboard
Situation where an action is triggered from a background notification action button.
Link copied to clipboard
Situation where an action is triggered from a foreground notification action button.
Link copied to clipboard
Situation where an action is manually invoked.
Link copied to clipboard
Situation where an action is triggered when a push is opened.
Link copied to clipboard
Situation where an action is triggered when a push is received.
Link copied to clipboard
Situation where an action is triggered from a web view.
Inherited functions
Link copied to clipboard
Called before an action is performed to determine if the the action can accept the arguments.
Link copied to clipboard
Called after the action performs.
Link copied to clipboard
Performs the action.
Link copied to clipboard
open fun sendResult(@NonNull permission: Permission, @NonNull before: PermissionStatus, @NonNull after: PermissionStatus, @Nullable resultReceiver: ResultReceiver)
Link copied to clipboard
Determines which thread runs the action.