OpenExternalURLAction
public final class OpenExternalURLAction : AirshipAction
Opens a URL, either in safari or using custom URL schemes.
Expected argument values: A valid URL String.
Valid situations: ActionSituation.foregroundPush
, ActionSituation.launchedFromPush
ActionSituation.webViewInvocation
, ActionSituation.foregroundInteractiveButton
,
ActionSituation.manualInvocation
, and ActionSituation.automation
Result value: The input value.
-
Default names - “open_external_url_action”, “^u”, “^w”, “wallet_action”
Declaration
Swift
public static let defaultNames: [String]
-
Default predicate - rejects
ActionSituation.foregroundPush
Declaration
Swift
public static let defaultPredicate: @Sendable (ActionArguments) -> Bool
-
accepts(arguments:
Asynchronous) Declaration
Swift
public func accepts(arguments: ActionArguments) async -> Bool
-
perform(arguments:
Asynchronous) Declaration
Swift
@MainActor public func perform(arguments: ActionArguments) async throws -> AirshipJSON?