Protocols

The following protocols are available globally.

  • Action protocol, which defines a modular unit of work.

    See more

    Declaration

    Objective-C

    @protocol UAAction <NSObject>

    Swift

    protocol Action : NSObjectProtocol
  • An protocol that defines the minimal functionality of a valid action predicate when loading a actions from a plist.

    See more

    Declaration

    Objective-C

    @protocol UAActionPredicateProtocol <NSObject>

    Swift

    protocol ActionPredicateProtocol : NSObjectProtocol
  • Base class for main SDK components.

    See more

    Declaration

    Objective-C

    @protocol UAComponent <NSObject>

    Swift

    protocol Component : NSObjectProtocol
  • Defines an Airship event.

    See more

    Declaration

    Objective-C

    @protocol UAEvent <NSObject>

    Swift

    protocol Event : NSObjectProtocol
  • A standard protocol for handling commands from the native brige.

    See more

    Declaration

    Objective-C

    @protocol UAJavaScriptCommandDelegate <NSObject>

    Swift

    protocol JavaScriptCommandDelegate : NSObjectProtocol
  • Delegate to extend the native bridge.

    See more

    Declaration

    Objective-C

    @protocol UANativeBridgeExtensionDelegate <NSObject>

    Swift

    protocol NativeBridgeExtensionDelegate : NSObjectProtocol
  • Location delegate protocol to receive callbacks for location updates.

    See more

    Declaration

    Objective-C

    @protocol UALocationDelegate <NSObject>

    Swift

    protocol LocationDelegate : NSObjectProtocol