Protocols

The following protocols are available globally.

  • Protocol used by Airship to log all log messages within the SDK. A custom log handlers should be set on Airship.logHandler before Airship.takeOff.

    See more

    Declaration

    Swift

    @objc(UAirshipLogHandler)
    public protocol AirshipLogHandler
  • Delegate protocol for app state tracker callbacks.

    See more

    Declaration

    Swift

    @objc(UAAppStateTrackerDelegate)
    public protocol AppStateTrackerDelegate
  • Protocol for tracking application state. Classes implementing this protocol should be able to report current application state, and send callbacks to an optional delegate object implementing the AppStateTrackerDelegate protocol.

    See more

    Declaration

    Swift

    @objc(UAAppStateTrackerAdapter)
    public protocol AppStateTrackerAdapter
  • Airship Channel protocol.

    See more

    Declaration

    Swift

    @objc(UAChannelProtocol)
    public protocol ChannelProtocol
  • Airship contact. A contact is distinct from a channel and represents a “user” within Airship. Contacts may be named and have channels associated with it.

    See more

    Declaration

    Swift

    @objc(UAContactProtocol)
    public protocol ContactProtocol
  • Contact delegate to handle conflicts.

    See more

    Declaration

    Swift

    @objc(UAContactConflictDelegate)
    public protocol ContactConflictDelegate
  • Protocol to be implemented by deep link handlers.

    See more

    Declaration

    Swift

    @objc(UADeepLinkDelegate)
    public protocol DeepLinkDelegate
  • Permissions manager delegate. Allows for extending permission gathering.

    See more

    Declaration

    Swift

    @objc(UAPermissionDelegate)
    public protocol PermissionDelegate
  • Protocol to be implemented by push notification clients. All methods are optional.

    See more

    Declaration

    Swift

    @objc(UAPushNotificationDelegate)
    public protocol PushNotificationDelegate : NSObjectProtocol
  • Airship Push protocol.

    See more

    Declaration

    Swift

    @objc(UAPushProtocol)
    public protocol PushProtocol
  • Implement this protocol and add as a Push.registrationDelegate to receive registration success and failure callbacks.

    See more

    Declaration

    Swift

    @objc(UARegistrationDelegate)
    public protocol RegistrationDelegate : NSObjectProtocol
  • Delegate protocol for accepting and rejecting URLs.

    See more

    Declaration

    Swift

    @objc(UAURLAllowListDelegate)
    public protocol URLAllowListDelegate