PROTOCOL

HaapiFlowDeepLinkable

public protocol HaapiFlowDeepLinkable: AnyObject, Sendable

An interface declaration for Haapi operations that can handle deep links. When receiving a deep link, invoke first canHandleUrl to assess the URL. If it returns true, invoke handleUrl.

Methods

canHandleUrl(_:)

func canHandleUrl(_ url: URL) async -> Bool

Returns a Bool whether the url can be handled.

handleUrl(_:)

func handleUrl(_ url: URL) async

Handles the url. If the url cannot be handled, a fatalError is invoked.