STRUCT
ExternalBrowserClientOperationActionModel
Contents
- Properties
nameargumentscontinueActionserrorActionshref
 - Methods
urlToLaunch(redirectTo:)init(from:)==(_:_:)
 
public struct ExternalBrowserClientOperationActionModel: ClientOperationActionModelRepresentation,  // swiftlint:disable:this type_name line_length
                                                         InternalClientOperationActionModelRepresentation
Model for the external browser client operation, which instructs a client that an external browser needs to be used to continue the flow.
For more information, refer to the HAAPI Data Model documentation.
Properties
name
public let name: ClientOperationName
arguments
public let arguments: [String: (any Sendable)]
continueActions
public let continueActions: [any Action]
errorActions
public let errorActions: [any Action]
href
public let href: String
The URL where the browser should be opened.
Methods
urlToLaunch(redirectTo:)
public func urlToLaunch(redirectTo: String) -> URL?
Returns the URL that should be used to open an external browser.
- Parameters:
- redirectTo: The String to which the browser should redirect after the external browser flow is complete (deep link)
 
 
Parameters
| Name | Description | 
|---|---|
| redirectTo | The String to which the browser should redirect after the external browser flow is complete (deep link) | 
init(from:)
public init(from decoder: Decoder) throws
Parameters
| Name | Description | 
|---|---|
| decoder | The decoder to read data from. | 
==(::)
public static func == (lhs: ExternalBrowserClientOperationActionModel,
                       rhs: ExternalBrowserClientOperationActionModel) -> Bool
Parameters
| Name | Description | 
|---|---|
| lhs | A value to compare. | 
| rhs | Another value to compare. |