Other Type Definitions

The following type definitions are available globally.

  • Undocumented

    Declaration

    Objective-C

    typedef void(^TKActionBlock)(void)

    Swift

    typealias TKActionBlock = () -> Void
  • Undocumented

    Declaration

    Objective-C

    typedef void(^TKActionTextfieldBlock)(NSString *value)

    Swift

    typealias TKActionTextfieldBlock = (String) -> Void
  • Undocumented

    Declaration

    Objective-C

    typedef void (^TKLocationManagerMonitorBlock)(CLRegion * region)

    Swift

    typealias TKLocationManagerMonitorBlock = (CLRegion) -> Void
  • Undocumented

    Declaration

    Objective-C

    typedef void (^TKLocationManagerLocationBlock)(CLLocation * location)

    Swift

    typealias TKLocationManagerLocationBlock = (CLLocation) -> Void
  • Undocumented

    Declaration

    Objective-C

    typedef void (^TKLocationManagerFailureBlock)(NSError * error)

    Swift

    typealias TKLocationManagerFailureBlock = (Error) -> Void
  • Undocumented

    Declaration

    Objective-C

    typedef void (^TKPermissionCompletionBlock)(BOOL enabled)

    Swift

    typealias TKPermissionCompletionBlock = (Bool) -> Void
  • Undocumented

    Declaration

    Objective-C

    typedef void(^TKPermissionsOpenSettingsHandler)(void)

    Swift

    typealias TKPermissionsOpenSettingsHandler = () -> Void
  • Undocumented

    Declaration

    Objective-C

    typedef void (^TKServerSuccessBlock)(NSInteger status, id _Nullable responseObject, NSData * _Nullable data)

    Swift

    typealias TKServerSuccessBlock = (Int, Any?, Data?) -> Void
  • Undocumented

    Declaration

    Objective-C

    typedef void (^TKServerFullSuccessBlock)(NSInteger status, NSDictionary<NSString *, id> *headers, id _Nullable responseObject, NSData * _Nullable data)

    Swift

    typealias TKServerFullSuccessBlock = (Int, [String : Any], Any?, Data?) -> Void
  • Undocumented

    Declaration

    Objective-C

    typedef void (^TKServerFailureBlock)(NSError *error)

    Swift

    typealias TKServerFailureBlock = (Error) -> Void
  • Undocumented

    Declaration

    Objective-C

    typedef void (^TKServerGenericBlock)(NSInteger status, NSDictionary<NSString *, id> *headers, id _Nullable responseObject, NSData * _Nullable data, NSError * _Nullable error)

    Swift

    typealias TKServerGenericBlock = (Int, [String : Any], Any?, Data?, Error?) -> Void
  • Undocumented

    Declaration

    Objective-C

    typedef void (^TKServiceCompletionBlock)(Service *service, BOOL success)

    Swift

    typealias TKServiceCompletionBlock = (Service, Bool) -> Void
  • Undocumented

    Declaration

    Objective-C

    typedef void(^TKRouterSuccess)(TripRequest *request, NSSet *modeIdentifiers)

    Swift

    typealias TKRouterSuccess = (TripRequest, Set<AnyHashable>) -> Void
  • Undocumented

    Declaration

    Objective-C

    typedef void(^TKRouterError)(NSError *error, NSSet *modeIdentifiers)

    Swift

    typealias TKRouterError = (Error, Set<AnyHashable>) -> Void