UAOpenExternalURLAction
@interface UAOpenExternalURLAction : UAAction
Opens a URL, either in safari or using custom URL schemes. This action is registered under the names ^u and open_external_url_action.
Expected argument values: NSString
Valid situations: UASituationForegroundPush, UASituationLaunchedFromPush UASituationWebViewInvocation, UASituationForegroundInteractiveButton, UASituationManualInvocation, and UASituationAutomation
Result value: An NSString representation of the input
Error: UAOpenExternalURLActionErrorCodeURLFailedToOpen
if the URL could not be opened
Fetch result: UAActionFetchResultNoData
-
Parses the NSURL from the action arguments.
Declaration
Objective-C
+ (nullable NSURL *)parseURLFromArguments: (nonnull UAActionArguments *)arguments;
Swift
class func parseURL(from arguments: UAActionArguments) -> URL?
Parameters
arguments
The action arguments.
Return Value
The parsed NSURL or null.