Classes

The following classes are available globally.

  • A UAAccountEventTemplate represents a custom account event template for the application.

    See more

    Declaration

    Objective-C

    @interface UAAccountEventTemplate : NSObject

    Swift

    class UAAccountEventTemplate : NSObject
  • Base class for actions, which defines a modular unit of work.

    See more

    Declaration

    Objective-C

    @interface UAAction : NSObject

    Swift

    class UAAction : NSObject
  • Contains the arguments passed into an action during execution.

    See more

    Declaration

    Objective-C

    @interface UAActionArguments : NSObject

    Swift

    class UAActionArguments : NSObject
  • This class is responsible for runtime-persisting actions and associating them with names and predicates.

    See more

    Declaration

    Objective-C

    @interface UAActionRegistry : NSObject

    Swift

    class UAActionRegistry : NSObject
  • An entry in the UAActionRegistry.

    See more

    Declaration

    Objective-C

    @interface UAActionRegistryEntry : NSObject

    Swift

    class UAActionRegistryEntry : NSObject
  • A class that holds the results of running an action, with optional metadata.

    See more

    Declaration

    Objective-C

    @interface UAActionResult : NSObject

    Swift

    class UAActionResult : NSObject
  • A helper class for running actions by name or by reference.

    See more

    Declaration

    Objective-C

    @interface UAActionRunner : NSObject

    Swift

    class UAActionRunner : NSObject
  • An action that adds a custom event.

    This action is registered under the name add_custom_event_action.

    Expected argument values: A dictionary of keys for the custom event. When a custom event action is triggered from a Message Center Rich Push Message, the interaction type and ID will automatically be filled for the message if they are left blank.

    Valid situations: UASituationForegroundPush, UASituationLaunchedFromPush, UASituationWebViewInvocation, UASituationManualInvocation, UASituationBackgroundPush, UASituationForegroundInteractiveButton, UASituationBackgroundInteractiveButton, and UASituationAutomation

    Result value: nil

    Fetch result: UAActionFetchResultNoData

    Default predicate: Only accepts UASituationWebViewInvocation and UASituationManualInvocation

    Declaration

    Objective-C

    @interface UAAddCustomEventAction : UAAction

    Swift

    class UAAddCustomEventAction : UAAction
  • Adds tags. This Action is registered under the names ^+t and add_tags_action.

    Expected argument values: NSString (single tag), NSArray (single or multiple tags), or NSDictionary (tag groups). An example tag group JSON payload: { channel: { channel_tag_group: [channel_tag_1, channel_tag_2], other_channel_tag_group: [other_channel_tag_1] }, named_user: { named_user_tag_group: [named_user_tag_1, named_user_tag_2], other_named_user_tag_group: [other_named_user_tag_1] }, device: [ tag, another_tag] }

    Valid situations: UASituationForegroundPush, UASituationLaunchedFromPush UASituationWebViewInvocation, UASituationForegroundInteractiveButton, UASituationBackgroundInteractiveButton, UASituationManualInvocation, and UASituationAutomation

    Default predicate: Rejects foreground pushes with visible display options on iOS 10 and above

    Result value: nil

    Error: nil

    Fetch result: UAActionFetchResultNoData

    Declaration

    Objective-C

    @interface UAAddTagsAction : UAModifyTagsAction

    Swift

    class UAAddTagsAction : UAModifyTagsAction
  • The UAAnalytics object provides an interface to the Urban Airship Analytics API.

    See more

    Declaration

    Objective-C

    @interface UAAnalytics : UAComponent

    Swift

    class UAAnalytics : UAComponent
  • Application hooks required by Urban Airship. If automaticSetupEnabled is enabled (enabled by default), Urban Airship will automatically integrate these calls into the application by swizzling methods. If automaticSetupEnabled is disabled, the application must call through to every method provided by this class.

    See more

    Declaration

    Objective-C

    @interface UAAppIntegration : NSObject

    Swift

    class UAAppIntegration
  • The UAApplicationMetrics class keeps track of application-related metrics.

    See more

    Declaration

    Objective-C

    @interface UAApplicationMetrics : NSObject

    Swift

    class UAApplicationMetrics : NSObject
  • Defines analytics identifiers to be associated with the device.

    See more

    Declaration

    Objective-C

    @interface UAAssociatedIdentifiers : NSObject

    Swift

    class UAAssociatedIdentifiers : NSObject
  • Manager class for scheduling actions.

    See more

    Declaration

    Objective-C

    @interface UAAutomation : UAComponent

    Swift

    class UAAutomation : UAComponent
  • A circle with an X in it, drawn to fill the frame.

    Declaration

    Objective-C

    @interface UABespokeCloseView : UIView

    Swift

    class UABespokeCloseView
  • An abstraction around a nicer looking loading indicator that embeds a UIActivityIndicatorView in a translucent black beveled rect.

    See more

    Declaration

    Objective-C

    @interface UABeveledLoadingIndicator : UIView

    Swift

    class UABeveledLoadingIndicator
  • Action to cancel automation schedules.

    This action is registered under the names cancel_scheduled_actions and ^csa.

    Expected argument values: NSString with the value all or an NSDictionary with: - groups: A schedule group or an array of schedule groups. - ids: A schedule ID or an array of schedule IDs.

    Valid situations: UASituationBackgroundPush, UASituationForegroundPush UASituationWebViewInvocation, UASituationManualInvocation, and UASituationAutomation

    Result value: nil.

    Declaration

    Objective-C

    @interface UACancelSchedulesAction : UAAction

    Swift

    class UACancelSchedulesAction : UAAction
  • A UACircularRegion defines a circular region with a radius, and latitude and longitude from its center.

    See more

    Declaration

    Objective-C

    @interface UACircularRegion : NSObject

    Swift

    class UACircularRegion : NSObject
  • The UAConfig object provides an interface for passing common configurable values to [UAirship takeOff]. The simplest way to use this class is to add an AirshipConfig.plist file in your app’s bundle and set the desired options. The plist keys use the same names as this class’s configuration options. Older, all-caps keys are still supported, but you should migrate your properties file to make use of a number of new options.

    See more

    Declaration

    Objective-C

    @interface UAConfig : NSObject <NSCopying>

    Swift

    class UAConfig : NSObject, NSCopying
  • A UACustomEvent captures information regarding a custom event for UAAnalytics.

    See more

    Declaration

    Objective-C

    @interface UACustomEvent : UAEvent

    Swift

    class UACustomEvent : UAEvent
  • Opens a deep link URL. This action is registered under the names ^d and deep_link_action.

    Expected argument values: NSString

    Valid situations: UASituationForegroundPush, UASituationLaunchedFromPush UASituationWebViewInvocation, UASituationForegroundInteractiveButton, UASituationManualInvocation, and UASituationAutomation

    Result value: An NSString representation of the input

    Error: UAOpenExternalURLActionErrorCodeURLFailedToOpen if the URL could not be opened

    Fetch result: UAActionFetchResultNoData

    Declaration

    Objective-C

    @interface UADeepLinkAction : UAOpenExternalURLAction

    Swift

    class UADeepLinkAction : UAOpenExternalURLAction
  • A convenience class for creating self-referencing cancellation tokens.

    @note: It is left up to the creator to determine what is disposed of and under what circumstances. This includes threading and memory management concerns.

    See more

    Declaration

    Objective-C

    @interface UADisposable : NSObject

    Swift

    class UADisposable : NSObject
  • Enables an Urban Airship feature.

    This action is registered under the names enable_feature and ^ef.

    Expected argument values: - user_notifications: To enable user notifications. - location: To enable location updates. - background_location: To enable location and allow background updates.

    Valid situations: UASituationForegroundPush, UASituationLaunchedFromPush, UASituationWebViewInvocation, UASituationManualInvocation, UASituationForegroundInteractiveButton, and UASituationAutomation

    Default predicate: Rejects foreground pushes with visible display options on iOS 10 and above.

    Result value: Empty.

    Declaration

    Objective-C

    @interface UAEnableFeatureAction : UAAction

    Swift

    class UAEnableFeatureAction : UAAction
  • This base class encapsulates analytics events.

    See more

    Declaration

    Objective-C

    @interface UAEvent : NSObject

    Swift

    class UAEvent : NSObject
  • Fetches device info.

    This action is registered under the names fetch_device_info and ^fdi.

    Expected argument values: none.

    Valid situations: UASituationLaunchedFromPush, UASituationWebViewInvocation, UASituationManualInvocation, UASituationForegroundInteractiveButton, UASituationBackgroundInteractiveButton, and UASituationAutomation

    Result value: JSON payload containing the device’s channel ID, named user ID, push opt-in status, location enabled status, and tags. An example response as JSON: { channel_id: 9c36e8c7-5a73-47c0-9716-99fd3d4197d5, push_opt_in: true, location_enabled: true, named_user: cool_user, tags: [tag1, tag2,tag3"] }

    Default Registration Predicate: Only accepts UASituationManualInvocation and UASituationWebViewInvocation

    Declaration

    Objective-C

    @interface UAFetchDeviceInfoAction : UAAction

    Swift

    class UAFetchDeviceInfoAction : UAAction
  • Matcher for a JSON payload.

    See more

    Declaration

    Objective-C

    @interface UAJSONMatcher : NSObject

    Swift

    class UAJSONMatcher : NSObject
  • Predicate for JSON payloads.

    See more

    Declaration

    Objective-C

    @interface UAJSONPredicate : NSObject

    Swift

    class UAJSONPredicate : NSObject
  • Defines a JSON value matcher.

    See more

    Declaration

    Objective-C

    @interface UAJSONValueMatcher : NSObject

    Swift

    class UAJSONValueMatcher : NSObject
  • Main class for interacting with Urban Airship location. Used to send location updates for the user to Urban Airship.

    See more

    Declaration

    Objective-C

    @interface UALocation : UAComponent

    Swift

    class UALocation : UAComponent
  • A UALocationEvent captures all the necessary information for UAAnalytics.

    See more

    Declaration

    Objective-C

    @interface UALocationEvent : UAEvent

    Swift

    class UALocationEvent : UAEvent
  • A UAMediaEventTemplate represents a custom media event template for the application.

    See more

    Declaration

    Objective-C

    @interface UAMediaEventTemplate : NSObject

    Swift

    class UAMediaEventTemplate : NSObject
  • The named user is an alternate method of identifying the device. Once a named user is associated to the device, it can be used to send push notifications to the device.

    See more

    Declaration

    Objective-C

    @interface UANamedUser : UAComponent

    Swift

    class UANamedUser : UAComponent
  • Clone of UNNotificationAction for iOS 8-10 support.

    See more

    Declaration

    Objective-C

    @interface UANotificationAction : NSObject

    Swift

    class UANotificationAction : NSObject
  • Utility methods to create categories from plist files or NSDictionaries.

    See more

    Declaration

    Objective-C

    @interface UANotificationCategories : NSObject

    Swift

    class UANotificationCategories : NSObject
  • Clone of UNNotificationCategory for iOS 8-9 support.

    See more

    Declaration

    Objective-C

    @interface UANotificationCategory : NSObject

    Swift

    class UANotificationCategory : NSObject
  • Clone of UNNotificationContent for iOS 8-9 support. Contains convenient accessors to the notification’s content.

    See more

    Declaration

    Objective-C

    @interface UANotificationContent : NSObject

    Swift

    class UANotificationContent : NSObject
  • Clone of UNNotificationResponse for iOS 8-9 support. Contains the user’s reponse to a notification.

    See more

    Declaration

    Objective-C

    @interface UANotificationResponse : NSObject

    Swift

    class UANotificationResponse : NSObject
  • Opens a URL, either in safari or using custom URL schemes. This action is registered under the names ^u and open_external_url_action.

    Expected argument values: NSString

    Valid situations: UASituationForegroundPush, UASituationLaunchedFromPush UASituationWebViewInvocation, UASituationForegroundInteractiveButton, UASituationManualInvocation, and UASituationAutomation

    Result value: An NSString representation of the input

    Error: UAOpenExternalURLActionErrorCodeURLFailedToOpen if the URL could not be opened

    Fetch result: UAActionFetchResultNoData

    See more

    Declaration

    Objective-C

    @interface UAOpenExternalURLAction : UAAction

    Swift

    class UAOpenExternalURLAction : UAAction
  • Padding adds constant values to a view’s top, bottom, trailing or leading constraints within its parent view.

    See more

    Declaration

    Objective-C

    @interface UAPadding : NSObject

    Swift

    class UAPadding : NSObject
  • A UAProximityRegion defines a proximity region with an identifier, major and minor.

    See more

    Declaration

    Objective-C

    @interface UAProximityRegion : NSObject

    Swift

    class UAProximityRegion : NSObject
  • This singleton provides an interface to the functionality provided by the Urban Airship iOS Push API.

    See more

    Declaration

    Objective-C

    @interface UAPush : UAComponent

    Swift

    class UAPush : UAComponent
  • A UARegion event captures information regarding a region event for UAAnalytics.

    See more

    Declaration

    Objective-C

    @interface UARegionEvent : UAEvent

    Swift

    class UARegionEvent : UAEvent
  • Removes tags. This Action is registered under the names ^-t and remove_tags_action.

    Expected argument values: NSString (single tag), NSArray (single or multiple tags), or NSDictionary (tag groups). An example tag group JSON payload: { channel: { channel_tag_group: [channel_tag_1, channel_tag_2], other_channel_tag_group: [other_channel_tag_1] }, named_user: { named_user_tag_group: [named_user_tag_1, named_user_tag_2], other_named_user_tag_group: [other_named_user_tag_1] }, device: [ tag, another_tag] }

    Valid situations: UASituationForegroundPush, UASituationLaunchedFromPush UASituationWebViewInvocation, UASituationForegroundInteractiveButton, UASituationBackgroundInteractiveButton, UASituationManualInvocation and UASituationAutomation

    Default predicate: Rejects foreground pushes with visible display options on iOS 10 and above

    Result value: nil

    Error: nil

    Fetch result: UAActionFetchResultNoData

    Declaration

    Objective-C

    @interface UARemoveTagsAction : UAModifyTagsAction

    Swift

    class UARemoveTagsAction : UAModifyTagsAction
  • A UARetailEventTemplate represents a custom retail event template for the application.

    See more

    Declaration

    Objective-C

    @interface UARetailEventTemplate : NSObject

    Swift

    class UARetailEventTemplate : NSObject
  • Contains the schedule info and identifier.

    See more

    Declaration

    Objective-C

    @interface UASchedule : NSObject

    Swift

    class UASchedule : NSObject
  • Action to schedule other actions.

    This action is registered under the names schedule_actions and ^sa.

    Expected argument values: NSDictionary representing a schedule info JSON.

    Valid situations: UASituationBackgroundPush, UASituationForegroundPush UASituationWebViewInvocation, UASituationManualInvocation, and UASituationAutomation

    Result value: Schedule ID or nil if the schedule failed.

    Declaration

    Objective-C

    @interface UAScheduleAction : UAAction

    Swift

    class UAScheduleAction : UAAction
  • Builder class for UAScheduleDelay.

    See more

    Declaration

    Objective-C

    @interface UAScheduleDelayBuilder : NSObject

    Swift

    class UAScheduleDelayBuilder : NSObject
  • A delay defines an amount of time and/or app conditions that must be met before the actions are able to be executed. The delay occurs after one of the triggers hits its goals.

    See more

    Declaration

    Objective-C

    @interface UAScheduleDelay : NSObject

    Swift

    class UAScheduleDelay : NSObject
  • Builder class for UAScheduleEdits.

    See more

    Declaration

    Objective-C

    @interface UAScheduleEditsBuilder : NSObject

    Swift

    class UAScheduleEditsBuilder : NSObject
  • Schedule edits.

    See more

    Declaration

    Objective-C

    @interface UAScheduleEdits : NSObject

    Swift

    class UAScheduleEdits : NSObject
  • Builder class for UAScheduleInfo.

    See more

    Declaration

    Objective-C

    @interface UAScheduleInfoBuilder : NSObject

    Swift

    class UAScheduleInfoBuilder : NSObject
  • Defines the scheduled action.

    See more

    Declaration

    Objective-C

    @interface UAScheduleInfo : NSObject

    Swift

    class UAScheduleInfo : NSObject
  • Trigger defines a condition to execute actions or cancel a delayed execution of actions.

    See more

    Declaration

    Objective-C

    @interface UAScheduleTrigger : NSObject

    Swift

    class UAScheduleTrigger : NSObject
  • Clone of UNTextInputNotificationAction for iOS 8-10 support.

    Note that in iOS 8, UATextInputNotificationAction actions will not be registered as custom actions with the operating system, as text input notification actions are not supported in iOS 8.

    See more

    Declaration

    Objective-C

    @interface UATextInputNotificationAction : UANotificationAction

    Swift

    class UATextInputNotificationAction : UANotificationAction
  • A NSURLProtocol that caches successful responses to requests who’s URL or mainDocumentURL has been added as a cachableURL. A failed response will always fall back to a cached response when available.

    See more

    Declaration

    Objective-C

    @interface UAURLProtocol : NSURLProtocol

    Swift

    class UAURLProtocol : URLProtocol
  • Primary interface for working with the application’s associated UA user.

    See more

    Declaration

    Objective-C

    @interface UAUser : UAComponent

    Swift

    class UAUser : UAComponent
  • The UAUtils object provides an interface for utility methods.

    See more

    Declaration

    Objective-C

    @interface UAUtils : NSObject

    Swift

    class UAUtils : NSObject
  • Class for whitelisting and verifying webview URLs.

    Whitelist entries are written as URL patterns with optional wildcard matching:

     \<scheme\> := \<any char combination, '\*' are treated as wildcards\>
    
     \<host\> := '\*' | '\*.'\<any char combination except '/' and '\*'\> | \<any char combination except '/' and '\*'\>
    
     \<path\> := \<any char combination, '\*' are treated as wildcards\>
    
     \<pattern\> := '\*' | \<scheme\>://\<host\>\<path\> | \<scheme\>://\<host\> | \<scheme\>:/\<path\> | \<scheme\>:///\<path\>
    

    A single wildcard will match any URI. Wildcards in the scheme pattern will match any characters, and a single wildcard in the scheme will match any scheme. The wildcard in a host pattern *.mydomain.com will match anything within the mydomain.com domain. Wildcards in the path pattern will match any characters, including subdirectories.

    Note that NSURL does not support internationalized domains containing non-ASCII characters. All whitelist entries for internationalized domains must be in ASCII IDNA format as specified in https://tools.ietf.org/html/rfc3490

    See more

    Declaration

    Objective-C

    @interface UAWhitelist : NSObject

    Swift

    class UAWhitelist : NSObject
  • UAirship manages the shared state for all Urban Airship services. [UAirship takeOff:] should be called from within your application delegate’s application:didFinishLaunchingWithOptions: method to initialize the shared instance.

    See more

    Declaration

    Objective-C

    @interface UAirship : NSObject

    Swift

    class UAirship : NSObject
  • Urban Airship Version.

    See more

    Declaration

    Objective-C

    @interface UAirshipVersion : NSObject

    Swift

    class UAirshipVersion : NSObject
  • Library-internal implementation of UAJavaScriptDelegate.

    This class exclusively handles UAJavaScriptDelegate calls with the run-action-cb, run-actions, run-basic-actions and close commands.

    Declaration

    Objective-C

    @interface UAActionJSDelegate : NSObject <UAJavaScriptDelegate>

    Swift

    class UAActionJSDelegate : NSObject
  • Wrapper around UIActivityViewController that takes an optional block that will fire after the view disappears.

    See more

    Declaration

    Objective-C

    @interface UAActivityViewController
        : UIActivityViewController <UIPopoverPresentationControllerDelegate,
                                    UIPopoverControllerDelegate>

    Swift

    class UAActivityViewController
  • Base class for UIWebView & WKWebView delegates that automatically inject the Urban Airship Javascript interface on whitelisted URLs.

    Declaration

    Objective-C

    @interface UABaseNativeBridge : NSObject

    Swift

    class UABaseNativeBridge : NSObject
  • ChannelCapture checks the device clipboard for an expected token on app foreground and displays an alert that allows the user to copy the Channel or optionally open a url with the channel as an argument.

    See more

    Declaration

    Objective-C

    @interface UAChannelCapture : NSObject

    Swift

    class UAChannelCapture
  • Enables channel capture for a set period of time.

    This action is registered under the names channel_capture_action and ^cc.

    Expected argument values: NSNumber specifying the number of seconds to enable channel capture for.

    Valid situations: UASituationBackgroundPush and UASituationManualInvocation

    Result value: nil

    Declaration

    Objective-C

    @interface UAChannelCaptureAction : UAAction

    Swift

    class UAChannelCaptureAction
  • Requests the inbox be displayed.

    The action will call the UAInboxDelegate showInboxMessage: if the specified message for every accepted situation except UASituationForegroundPush where richPushMessageAvailable: will be called instead.

    If the message is unavailable because the message is not in the message list or the message ID was not supplied then showInbox will be called for every situation except for UASituationForegroundPush.

    This action is registered under the names open_mc_action and ^mc.

    Expected argument value is an inbox message ID as an NSString, nil, or auto to look for the message in the argument’s metadata.

    Valid situations: UASituationForegroundPush, UASituationLaunchedFromPush, UASituationWebViewInvocation, UASituationManualInvocation, UASituationForegroundInteractiveButton, and UASituationAutomation

    Result value: nil

    See more

    Declaration

    Objective-C

    @interface UADisplayInboxAction : UAAction

    Swift

    class UADisplayInboxAction
  • Builder class for UAInAppMessage.

    See more

    Declaration

    Objective-C

    @interface UAInAppMessageBuilder : NSObject

    Swift

    class UAInAppMessageBuilder : NSObject
  • Model object representing in-app message data.

    See more

    Declaration

    Objective-C

    @interface UAInAppMessage : NSObject

    Swift

    class UAInAppMessage : NSObject
  • Builder class for UAInAppMessageAudience.

    See more

    Declaration

    Objective-C

    @interface UAInAppMessageAudienceBuilder : NSObject

    Swift

    class UAInAppMessageAudienceBuilder : NSObject
  • Model object for an in-app message audience constraint.

    See more

    Declaration

    Objective-C

    @interface UAInAppMessageAudience : NSObject

    Swift

    class UAInAppMessageAudience : NSObject
  • Builder class for UAInAppMessageButtonInfo.

    See more

    Declaration

    Objective-C

    @interface UAInAppMessageButtonInfoBuilder : NSObject

    Swift

    class UAInAppMessageButtonInfoBuilder
  • Defines an in-app message button.

    See more

    Declaration

    Objective-C

    @interface UAInAppMessageButtonInfo : NSObject

    Swift

    class UAInAppMessageButtonInfo
  • Model object representing a custom style to be applied to an in-app message button component. Nil parameters are given default styling.

    See more

    Declaration

    Objective-C

    @interface UAInAppMessageButtonStyle : NSObject

    Swift

    class UAInAppMessageButtonStyle : NSObject
  • Display content for an in-app message.

    See more

    Declaration

    Objective-C

    @interface UAInAppMessageDisplayContent : NSObject

    Swift

    class UAInAppMessageDisplayContent : NSObject
  • Provides a control interface for creating, canceling and executing in-app message schedules.

    See more

    Declaration

    Objective-C

    @interface UAInAppMessageManager : UAComponent

    Swift

    class UAInAppMessageManager
  • Defines in-app message media content.

    See more

    Declaration

    Objective-C

    @interface UAInAppMessageMediaInfo : NSObject

    Swift

    class UAInAppMessageMediaInfo : NSObject
  • Model object representing a custom style to be applied to an in-app message media component. Nil parameters are given default styling.

    See more

    Declaration

    Objective-C

    @interface UAInAppMessageMediaStyle : NSObject

    Swift

    class UAInAppMessageMediaStyle : NSObject
  • In-app message resolution info.

    See more

    Declaration

    Objective-C

    @interface UAInAppMessageResolution : NSObject

    Swift

    class UAInAppMessageResolution : NSObject
  • Model object for an in-app message audience constraint’s tag selector.

    See more

    Declaration

    Objective-C

    @interface UAInAppMessageTagSelector : NSObject

    Swift

    class UAInAppMessageTagSelector : NSObject
  • Builder class for UAInAppMessageTextInfo.

    See more

    Declaration

    Objective-C

    @interface UAInAppMessageTextInfoBuilder : NSObject

    Swift

    class UAInAppMessageTextInfoBuilder
  • Defines the text that appears in an in-app message.

    See more

    Declaration

    Objective-C

    @interface UAInAppMessageTextInfo : NSObject

    Swift

    class UAInAppMessageTextInfo
  • Model object representing a custom style to be applied to an in-app message text component. Nil parameters are given default styling.

    See more

    Declaration

    Objective-C

    @interface UAInAppMessageTextStyle : NSObject

    Swift

    class UAInAppMessageTextStyle : NSObject
  • The main class for interacting with the Rich Push Inbox.

    This class bridges library functionality with the UI and is the main point of interaction. Most implementations will only use functionality found in this class.

    See more

    Declaration

    Objective-C

    @interface UAInbox : UAComponent

    Swift

    class UAInbox
  • This class represents a Rich Push Inbox message. It contains all the available information about a message, including the URLs where the message can be retrieved.

    See more

    Declaration

    Objective-C

    @interface UAInboxMessage : NSObject

    Swift

    class UAInboxMessage : NSObject
  • The primary interface to the contents of the inbox. Use this class to asychronously retrieve messges from the server, delete or mark messages as read, retrieve individual messages from the list.

    See more

    Declaration

    Objective-C

    @interface UAInboxMessageList : NSObject

    Swift

    class UAInboxMessageList : NSObject
  • Rich Push helper methods.

    See more

    Declaration

    Objective-C

    @interface UAInboxUtils : NSObject

    Swift

    class UAInboxUtils : NSObject
  • Opens a landing page URL in a rich content window.

    This action is registered under the names landing_page_action and ^p.

    Expected argument values: url: NSString or NSURL. Short url formats are in the form of u: and will be used to construct a new URL using the content-id. width: Optional Int or String. Width should be specified in points or as fill to fill current screen. Defaults to fill. height: Optional Int or String. Height should be specified in points or fill to fill current screen. Defaults to fill. aspect_lock: Optional Boolean. Determines if aspect ratio is maintained during resizing to fit screen size. Defaults to false.

    Valid situations: UASituationForegroundPush, UASituationLaunchedFromPush, UASituationWebViewInvocation, UASituationManualInvocation, UASituationBackgroundPush, UASituationForegroundInteractiveButton, and UASituationAutomation

    In situation UASituationBackgroundPush, the action will attempt to pre-fetch the data and cache it for later use.

    Result value: nil

    Fetch result: UAActionFetchResultNewData, or UAActionFetchResultFailed if the data could not be fetched.

    Declaration

    Objective-C

    @interface UALandingPageAction : UAAction

    Swift

    class UALandingPageAction
  • Model object representing in-app message data.

    See more

    Declaration

    Objective-C

    @interface UALegacyInAppMessage : NSObject

    Swift

    class UALegacyInAppMessage : NSObject
  • The UAMessageCenter class provides a default implementation of a message center, as well as a high-level interface for its configuration and display.

    See more

    Declaration

    Objective-C

    @interface UAMessageCenter : NSObject

    Swift

    class UAMessageCenter : NSObject
  • Utility for getting relative date within the message center.

    See more

    Declaration

    Objective-C

    @interface UAMessageCenterDateUtils : NSObject

    Swift

    class UAMessageCenterDateUtils : NSObject
  • The UITableViewCell subclass used by the default message center.

    See more

    Declaration

    Objective-C

    @interface UAMessageCenterListCell : UITableViewCell

    Swift

    class UAMessageCenterListCell
  • Default implementation of a list-style Message Center UI.

    See more

    Declaration

    Objective-C

    @interface UAMessageCenterListViewController
        : UIViewController <UITableViewDelegate, UITableViewDataSource,
                            UIScrollViewDelegate, UISplitViewControllerDelegate>

    Swift

    class UAMessageCenterListViewController
  • Default implementation of an adaptive message center controller.

    See more

    Declaration

    Objective-C

    @interface UAMessageCenterSplitViewController : UISplitViewController

    Swift

    class UAMessageCenterSplitViewController
  • Model object representing a custom style to be applied to the default message center.

    Note: the customizations exposed in this class are a la carte. Unless otherwise noted, unspecified properties will be overridden by the default message center at display time.

    See more

    Declaration

    Objective-C

    @interface UAMessageCenterStyle : NSObject

    Swift

    class UAMessageCenterStyle : NSObject
  • Requests an inbox message to be displayed in an overlay.

    This action is registered under the names open_mc_overlay_action and ^mco.

    Expected argument value is an inbox message ID as an NSString or MESSAGE_ID to look for the message in the argument’s metadata.

    Valid situations: UASituationForegroundPush, UASituationLaunchedFromPush, UASituationWebViewInvocation, UASituationManualInvocation, UASituationForegroundInteractiveButton, and UASituationAutomation.

    Result value: nil

    Default predicate: Rejects situation UASituationForegroundPush.

    Declaration

    Objective-C

    @interface UAOverlayInboxMessageAction : UAAction

    Swift

    class UAOverlayInboxMessageAction
  • This class provides an interface for displaying overlay window over the app’s UI without totally obscuring it, which loads a landing page in an embedded WKWebView.

    See more

    Declaration

    Objective-C

    @interface UAOverlayViewController : NSObject <UAWKWebViewDelegate>

    Swift

    class UAOverlayViewController : NSObject, UAWKWebViewDelegate
  • Sets the pasteboard’s string.

    This action is registered under the names clipboard_action and ^c.

    Expected argument values: NSString or an NSDictionary with the pasteboard’s string under the ‘text’ key.

    Valid situations: UASituationLaunchedFromPush, UASituationWebViewInvocation, UASituationManualInvocation, UASituationForegroundInteractiveButton, UASituationBackgroundInteractiveButton, and UASituationAutomation

    Result value: The arguments value.

    Declaration

    Objective-C

    @interface UAPasteboardAction : UAAction

    Swift

    class UAPasteboardAction
  • Links directly to app store review page or opens an app rating prompt.

    This action is registered under the names rate_app_action and ^ra.

    The rate app action requires your application to provide an itunes ID as an argument value, or have it set on the UAConfig instance used for takeoff. The itunes ID can be set on the UAConfig instance directly via UAConfig’s itunesID property, or by setting the itunesID as an NSString value in the AirshipConfig.plist under the key itunesID.

    Expected argument values: show_link_prompt:Required Boolean. If NO action will link directly to the iTunes app review page, if YES action will display a rating prompt. Defaults to NO if nil. link_prompt_title: Optional String. String to override the link prompt’s title. Title over 24 characters will be rejected. Header defaults to Enjoying ? if nil. link_prompt_body: Optional String. String to override the link prompt’s body. Bodies over 50 characters will be rejected. Body defaults to Tap Rate App to rate it on the App Store. if nil. itunes_id: Optional String. The iTunes ID for the application to be rated.

    Valid situations: UASituationForegroundPush, UASituationLaunchedFromPush, UASituationWebViewInvocation UASituationManualInvocation, UASituationForegroundInteractiveButton, and UASituationAutomation

    Result value: nil

    See more

    Declaration

    Objective-C

    @interface UARateAppAction : UAAction

    Swift

    class UARateAppAction
  • Shares text using UAActivityViewController.

    This action is registered under the names share_action and ^s.

    Expected argument value is an NSString.

    Valid situations: UASituationForegroundPush, UASituationLaunchedFromPush, UASituationWebViewInvocation, UASituationManualInvocation, UASituationForegroundInteractiveButton, and UASituationAutomation

    Default predicate: Rejects situation UASituationForegroundPush.

    Result value: nil

    Declaration

    Objective-C

    @interface UAShareAction : UAAction

    Swift

    class UAShareAction
  • Opens a wallet URL, either in safari or using custom URL schemes. This action is registered under the names ^w and wallet_action.

    Expected argument values: NSString

    Valid situations: UASituationForegroundPush, UASituationLaunchedFromPush UASituationWebViewInvocation, UASituationForegroundInteractiveButton, UASituationManualInvocation, and UASituationAutomation

    Result value: An NSString representation of the input

    Error: UAOpenExternalURLActionErrorCodeURLFailedToOpen if the URL could not be opened

    Fetch result: UAActionFetchResultNoData

    Declaration

    Objective-C

    @interface UAWalletAction : UAOpenExternalURLAction

    Swift

    class UAWalletAction
  • Model object for holding data associated with JS delegate calls

    See more

    Declaration

    Objective-C

    @interface UAWebViewCallData : NSObject

    Swift

    class UAWebViewCallData : NSObject