Type Definitions

The following type definitions are available globally.

  • Dictionary of feature properties keyed by their property name.

    Declaration

    Objective-C

    typedef NSDictionary<NSString *, NSString *> TGFeatureProperties
  • A URL request completion callback, called when a download request of TGURLHandler completes an asynchronous request.

    Declaration

    Objective-C

    typedef void (^TGDownloadCompletionHandler)(NSData *_Nullable,
                                                NSURLResponse *_Nullable,
                                                NSError *_Nullable)

    Swift

    typealias TGDownloadCompletionHandler = (Data?, URLResponse?, Error?) -> Void