Type Definitions
The following type definitions are available globally.
-
A custom block that can be used to limit the scope of an action.
Declaration
Objective-C
typedef BOOL (^UAActionPredicate)(UAActionArguments *_Nonnull)
Swift
typealias UAActionPredicate = (UAActionArguments) -> Bool
-
A completion handler that signals that an action has finished executing.
Declaration
Objective-C
typedef void (^UAActionCompletionHandler)(UAActionResult *_Nonnull)
Swift
typealias UAActionCompletionHandler = (UAActionResult) -> Void
-
A block that defines the primary work performed by an action.
Declaration
Objective-C
typedef void (^UAActionBlock)(UAActionArguments *_Nonnull, UAActionCompletionHandler _Nonnull)
Swift
typealias UAActionBlock = (UAActionArguments, @escaping UAActionCompletionHandler) -> Void
-
The logger block - log level, function, line, message block
Declaration
Objective-C
typedef void (^UALoggerBlock)(NSInteger, NSString *_Nonnull, NSUInteger, UAMessageBlock _Nonnull)
Swift
typealias UALoggerBlock = (Int, String, UInt, @escaping UAMessageBlock) -> Void