Type-Definitions

The following type definitions are available globally.

  • The definition of the completion block used by URL shortener.

    Declaration

    Swift

    typealias DynamicLinkShortenerCompletion = (URL?, [String]?, Error?) -> Void

    Objective-C

    typedef void (^FIRDynamicLinkShortenerCompletion)(
        NSURL *_Nullable, NSArray<NSString *> *_Nullable, NSError *_Nullable)

    Parameters

    shortURL

    Shortened URL.

    warnings

    Warnings that describe usability or function limitations of the generated short link. Usually presence of warnings means parameteres format error, parametres value error or missing parameter.

    error

    Error if URL can’t be shortened.

  • The definition of the block used by |resolveShortLink:completion:|

    Declaration

    Swift

    typealias DynamicLinkResolverHandler = (URL?, Error?) -> Void

    Objective-C

    typedef void (^FIRDynamicLinkResolverHandler)(NSURL *_Nullable,
                                                  NSError *_Nullable)
  • The definition of the block used by |handleUniversalLink:completion:|

    Declaration

    Swift

    typealias DynamicLinkUniversalLinkHandler = (FIRDynamicLink?, Error?) -> Void

    Objective-C

    typedef void (^FIRDynamicLinkUniversalLinkHandler)(FIRDynamicLink *_Nullable,
                                                       NSError *_Nullable)