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: Action.Situation.PUSH_OPENED, Action.Situation.WEB_VIEW_INVOCATION, Action.Situation.MANUAL_INVOCATION, Action.Situation.AUTOMATION, and Action.Situation.FOREGROUND_NOTIFICATION_ACTION_BUTTON.
Accepted argument value - FEATURE_USER_NOTIFICATIONS, FEATURE_BACKGROUND_LOCATION, FEATURE_LOCATION, or any Permission value, e.g. "camera" or "photo_library".
Only Permission.DISPLAY_NOTIFICATIONS has a built-in delegate. Prompting for any other permission requires the app to register a com.urbanairship.permission.PermissionDelegate with PermissionsManager, otherwise the prompt resolves to com.urbanairship.permission.PermissionStatus.NOT_DETERMINED and nothing is shown.
Result value: true if the feature was enabled, otherwise false.
Default Registration Names: DEFAULT_NAMES
Constructors
Inherited functions
Called before an action is performed to determine if the the action can accept the arguments.
Called after the action performs.
Performs the action.
Performs the action, suspending until it completes.
Performs the action, with pre/post execution calls, if it accepts the provided arguments.
Performs the action, with pre/post execution calls, if it accepts the provided arguments, suspending until the action completes.
Determines which thread runs the action.