Type Definitions

The following type definitions are available globally.

  • A block to be executed when a UADisposable is disposed.

    Declaration

    Objective-C

    typedef void (^UADisposalBlock)(void)

    Swift

    typealias UADisposalBlock = () -> Void
  • A completion handler used to pass the result of a UAJavaScriptDelegate call. The value passed may be nil.

    Declaration

    Objective-C

    typedef void (^UAJavaScriptDelegateCompletionHandler)(NSString *_Nullable)

    Swift

    typealias UAJavaScriptDelegateCompletionHandler = (String?) -> Void
  • Keys and values for location analytics

    Declaration

    Objective-C

    typedef NSString UALocationEventAnalyticsKey
  • A completion block for message list operations.

    Declaration

    Objective-C

    typedef void (^UAInboxMessageListCallbackBlock)(void)

    Swift

    typealias UAInboxMessageListCallbackBlock = () -> Void