Type Definitions

The following type definitions are available globally.

  • Generic success callback block’s definition.

    Declaration

    Objective-C

    typedef void (^SuccessHander)(void)

    Swift

    typealias SuccessHander = () -> Void
  • Generic error callback block’s definition.

    Known error codes:

    • init_error
    • invalid_param
    • invalid_event
    • data_conversion
    • storage_error
    • network_error
    • server_response
    • unknown_error

    Declaration

    Objective-C

    typedef void (^ErrorHandler)(NSString *_Nonnull, NSString *_Nullable)

    Swift

    typealias ErrorHandler = (String, String?) -> Void