CLASS

HaapiDeepLinkManager

Contents

public class HaapiDeepLinkManager: HaapiDeepLinkManageable, HaapiFlowDeepLinkable

An Haapi deep link manager that is a singleton and conforms to HaapiDeepLinkManageable and HaapiFlowDeepLinkable. HaapiDeepLinkManager manages only one registered HaapiFlowDeepLinkable.

When supporting deep linking with Haapi, HaapiDeepLinkManager can be used when HaapiFlow.start() is invoked . When HaapiDeepLinkManager has been passed to HaapiFlow.start(), HaapiDeepLinkManager.canHandleUrl() and HaapiDeepLinkManager.handleUrl() have to be invoked.

Properties

shared

public static let shared = HaapiDeepLinkManager()

Methods

registerHaapiFlowDeeplinkable(_:)

public func registerHaapiFlowDeeplinkable(_ haapiFlowDeepLinkable: HaapiFlowDeepLinkable)

Parameters

Name Description
haapiFlowDeepLinkable An haapiFlowDeepLinkable.

unregisterHaapiFlowDeeplinkable(_:)

public func unregisterHaapiFlowDeeplinkable(_ haapiFlowDeepLinkable: HaapiFlowDeepLinkable) -> Bool

Parameters

Name Description
haapiFlowDeepLinkable An haapiFlowDeepLinkable.

canHandleUrl(_:)

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

handleUrl(_:)

public func handleUrl(_ url: URL)