CallbackService

public class CallbackService

Handles callbacks via inter-app communication such as deeplinks

  • The shared instance of the callback service. Handles communication to the SDK

    Declaration

    Swift

    public class func shared() -> CallbackService

    Return Value

    A shared instance of CallbackService

  • Call this when app receives a callback that the SDK should handle This should be called from either: func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool or func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) if using scene delagtes

    Declaration

    Swift

    @discardableResult
    public func handleCallback(url: URL) -> Bool

    Parameters

    url

    The URL containing the callback

    Return Value

    true if the URL was handled by the SDK, false otherwise