BTAppContextSwitchDriver
Objective-C
@protocol BTAppContextSwitchDriver
Swift
protocol BTAppContextSwitchDriver
A protocol for handling the return from gathering payment information from a browser or another app.
Note
The app context may switch to a SFSafariViewController or to a native app, such as Venmo.-
Determine whether the return URL can be handled.
Declaration
Objective-C
+ (BOOL)canHandleReturnURL:(nonnull NSURL *)url;
Swift
static func canHandleReturnURL(_ url: URL) -> Bool
Parameters
url
the URL you receive in
scene:openURLContexts:
(orapplication:openURL:options:
if iOS 12) when returning to your appReturn Value
YES
when the SDK can process the return URL -
Complete payment flow after returning from app or browser switch.
Declaration
Objective-C
+ (void)handleReturnURL:(nonnull NSURL *)url;
Swift
static func handleReturnURL(_ url: URL)
Parameters
url
The URL you receive in
scene:openURLContexts:
(orapplication:openURL:options:
if iOS 12)