Referrer

public enum Referrer

The Referrer allows the DeepLinkHandler to track the origin of a deep link, whether it came from a URL or another app. This can be passed as an optional parameter to the handle(link:referrer:) method for further processing.

  • The deep link came from a URL.

    Declaration

    Swift

    case url(_: URL)
  • The deep link came from another app.

    Declaration

    Swift

    case app(_: String)
  • Creates a referrer from a URL if it’s not nil.

    Declaration

    Swift

    public static func fromUrl(_ url: URL?) -> `Self`?

    Parameters

    url

    The URL to create a referrer from.

    Return Value

    A URL referrer or nil if the URL is nil.

  • Creates a referrer from an app identifier if it’s not nil.

    Declaration

    Swift

    public static func fromAppId(_ identifier: String?) -> `Self`?

    Parameters

    identifier

    The app identifier to create a referrer from.

    Return Value

    An app referrer or nil if the identifier is nil.