Constants
The following constants are available globally.
-
@abstract horizontal image aspect ratio
Declaration
Objective-C
extern NSString *const _Nonnull AVAImageAspectRatioHorizontalSwift
let AVAImageAspectRatioHorizontal: String -
@abstract squared image aspect ratio
Declaration
Objective-C
extern NSString *const _Nonnull AVAImageAspectRatioSquareSwift
let AVAImageAspectRatioSquare: String -
@abstract Type for a link action.
Declaration
Objective-C
extern NSString *const _Nonnull AVAMessageActionTypeLinkSwift
let AVAMessageActionTypeLink: String -
@abstract Type for a webview action.
Declaration
Objective-C
extern NSString *const _Nonnull AVAMessageActionTypeWebviewSwift
let AVAMessageActionTypeWebview: String -
@abstract Type for a buy action.
Declaration
Objective-C
extern NSString *const _Nonnull AVAMessageActionTypeBuySwift
let AVAMessageActionTypeBuy: String -
@abstract Type for a postback action.
Declaration
Objective-C
extern NSString *const _Nonnull AVAMessageActionTypePostbackSwift
let AVAMessageActionTypePostback: String -
@abstract Type for a reply action
Declaration
Objective-C
extern NSString *const _Nonnull AVAMessageActionTypeReplySwift
let AVAMessageActionTypeReply: String -
@abstract Type for a location request
Declaration
Objective-C
extern NSString *const _Nonnull AVAMessageActionTypeLocationRequestSwift
let AVAMessageActionTypeLocationRequest: String -
@abstract Offered state for a buy message. The user has not yet completed the transaction.
Declaration
Objective-C
extern NSString *const _Nonnull AVAMessageActionStateOfferedSwift
let AVAMessageActionStateOffered: String -
@abstract Paid state for a buy message. The user has completed the transaction and payment was successful.
Declaration
Objective-C
extern NSString *const _Nonnull AVAMessageActionStatePaidSwift
let AVAMessageActionStatePaid: String -
@abstract A full-sized webview
Declaration
Objective-C
extern NSString *const _Nonnull AVAMessageActionWebviewSizeFullSwift
let AVAMessageActionWebviewSizeFull: String -
@abstract A tall-sized webview
Declaration
Objective-C
extern NSString *const _Nonnull AVAMessageActionWebviewSizeTallSwift
let AVAMessageActionWebviewSizeTall: String -
@abstract A compact-sized webview
Declaration
Objective-C
extern NSString *const _Nonnull AVAMessageActionWebviewSizeCompactSwift
let AVAMessageActionWebviewSizeCompact: String -
Undocumented
Declaration
Objective-C
FOUNDATION_EXPORT double AvMessagingSdkVersionNumberSwift
var AvMessagingSdkVersionNumber: Double -
Undocumented
Declaration
Objective-C
FOUNDATION_EXPORT const unsigned char AvMessagingSdkVersionString[] -
@abstract User info dictionary key to determine the origin of a push notification.
@discussion Push notifications that originate from AvMessagingSdk will have a non-nil value for this key.
BOOL isAvMessagingSdkNotification = userInfo[AVAPushNotificationIdentifier] != nilDeclaration
Objective-C
extern NSString *const _Nonnull AVAPushNotificationIdentifierSwift
let AVAPushNotificationIdentifier: String -
@abstract User info dictionary key for an AVAUser after a successful call to +login:jwt:completionHandler:
See
AVAUserSee
AVALoginDidCompleteNotificationSee
+login:jwt:completionHandler:Declaration
Objective-C
extern NSString *const _Nonnull AVAUserIdentifierSwift
let AVAUserIdentifier: String -
@abstract User info dictionary key for an AVAConversation after a successful call to +startConversationWithCompletionHandler:
See
AVAConversationSee
+startConversationWithCompletionHandler:Declaration
Objective-C
extern NSString *const _Nonnull AVAConversationIdentifierSwift
let AVAConversationIdentifier: String -
@abstract User info dictionary key to determine the error code of a failed operation. Possible operations that may include this value are +initWithSettings:completionHandler:, +login:jwt:completionHandler: and +logoutWithCompletionHandler:
@discussion Possible values include, but are not limited to, “unauthorized”, “invalid_auth”, “bad_request”, “unhandled_error”, “invalid_app” or an empty string for connectivity errors
See
AVAInitializationDidFailNotificationSee
AVALoginDidFailNotificationSee
AVALogoutDidFailNotificationSee
+initWithSettings:completionHandler:See
+login:jwt:completionHandler:See
+logoutWithCompletionHandler:Declaration
Objective-C
extern NSString *const _Nonnull AVAErrorCodeIdentifierSwift
let AVAErrorCodeIdentifier: String -
@abstract User info dictionary key to determine the error description of a failed operation. Possible operations that include this value are +initWithSettings:completionHandler:, +login:jwt:completionHandler: and +logoutWithCompletionHandler:
See
AVAInitializationDidFailNotificationSee
AVALoginDidFailNotificationSee
AVALogoutDidFailNotificationSee
+initWithSettings:completionHandler:See
+login:jwt:completionHandler:See
+logoutWithCompletionHandler:Declaration
Objective-C
extern NSString *const _Nonnull AVAErrorDescriptionIdentifierSwift
let AVAErrorDescriptionIdentifier: String -
@abstract Custom error domain identifier
Declaration
Objective-C
extern NSString *const _Nonnull AVAErrorDomainIdentifierSwift
let AVAErrorDomainIdentifier: String -
@abstract User info dictionary key to determine the HTTP status code of a failed operation. Possible operations that include this value are +initWithSettings:completionHandler:, +login:jwt:completionHandler: and +logoutWithCompletionHandler:
@discussion User info dictionary key to determine the HTTP status code of a failed operation
See
AVAInitializationDidFailNotificationSee
AVALoginDidFailNotificationSee
AVALogoutDidFailNotificationSee
+initWithSettings:completionHandler:See
+login:jwt:completionHandler:See
+logoutWithCompletionHandler:Declaration
Objective-C
extern NSString *const _Nonnull AVAStatusCodeIdentifierSwift
let AVAStatusCodeIdentifier: String -
@abstract Identifier for a AvMessagingSdk user notification reply action.
@discussion Used as the identifier for a UIUserNotificationAction on iOS 9, and a UNTextInputNotificationAction on iOS 10 and above.
Declaration
Objective-C
extern NSString *const _Nonnull AVAUserNotificationReplyActionIdentifierSwift
let AVAUserNotificationReplyActionIdentifier: String -
@abstract Identifier for a AvMessagingSdk user notification category.
@discussion Used as the identifier for a UIUserNotificationCategory on iOS 9, and a UNNotificationCategory on iOS 10 and above.
Declaration
Objective-C
extern NSString *const _Nonnull AVAUserNotificationReplyCategoryIdentifierSwift
let AVAUserNotificationReplyCategoryIdentifier: String -
@abstract Notification that fires when initialization completes successfully
@discussion This notification is fired each time a call to +initWithSettings:completionHandler: completes with a non-error status code.
See
+initWithSettings:completionHandler:Declaration
Objective-C
extern NSString *const _Nonnull AVAInitializationDidCompleteNotificationSwift
static let AVAInitializationDidComplete: NSNotification.Name -
@abstract Notification that fires when initialization fails
@discussion This notification is fired each time a call to +initWithSettings:completionHandler: fails.
You may use this notification to know if initialization failed due to an invalid app ID, invalid JWT, or connectivity errors by inspecting the
userInfodictionary included with it.See
AVAErrorCodeIdentifierSee
AVAErrorDescriptionIdentifierSee
AVAStatusCodeIdentifierDeclaration
Objective-C
extern NSString *const _Nonnull AVAInitializationDidFailNotificationSwift
static let AVAInitializationDidFail: NSNotification.Name -
@abstract Notification that fires when +login:jwt:completionHandler: completes successfully
@discussion This notification is fired each time a call to +login:jwt:completionHandler: completes with a non-error status code.
See
+login:jwt:completionHandler:See
AVAUserIdentifierDeclaration
Objective-C
extern NSString *const _Nonnull AVALoginDidCompleteNotificationSwift
static let AVALoginDidComplete: NSNotification.Name -
@abstract Notification that fires when +login:jwt:completionHandler: fails
@discussion This notification is fired each time a call to +login:jwt:completionHandler: fails.
You may use this notification to know if a call to +login:jwt:completionHandler: failed due to an invalid JWT, or connectivity errors by inspecting the
userInfodictionary included with it.See
AVAErrorCodeIdentifierSee
AVAErrorDescriptionIdentifierSee
AVAStatusCodeIdentifierDeclaration
Objective-C
extern NSString *const _Nonnull AVALoginDidFailNotificationSwift
static let AVALoginDidFail: NSNotification.Name -
@abstract Notification that fires when +logoutWithCompletionHandler: completes successfully
@discussion This notification is fired each time a call to +logoutWithCompletionHandler: completes with a non-error status code.
See
+logoutWithCompletionHandler:Declaration
Objective-C
extern NSString *const _Nonnull AVALogoutDidCompleteNotificationSwift
static let AVALogoutDidComplete: NSNotification.Name -
@abstract Notification that fires when a call to +logoutWithCompletionHandler: fails
@discussion This notification is fired when a call to +logoutWithCompletionHandler: fails
See
AVAErrorCodeIdentifierSee
AVAErrorDescriptionIdentifierSee
AVAStatusCodeIdentifierDeclaration
Objective-C
extern NSString *const _Nonnull AVALogoutDidFailNotificationSwift
static let AVALogoutDidFail: NSNotification.Name -
@abstract Posted when the count of unread messages changes. The notification object will be an instance of AVAConversation, of which you can then inspect the messageCount property.
See
AVAConversationDeclaration
Objective-C
extern NSString *const _Nonnull AVAConversationUnreadCountDidChangeNotificationSwift
static let AVAConversationUnreadCountDidChange: NSNotification.Name -
@abstract Posted when an image upload begins.
@discussion The userInfo dictionary contains the UIImage to upload. Use AVAConversationImageKey to access this value.
This notification is guaranteed to fire on the main thread.
See
AVAConversationImageKeyDeclaration
Objective-C
extern NSString *const _Nonnull AVAConversationImageUploadDidStartNotificationSwift
static let AVAConversationImageUploadDidStart: NSNotification.Name -
@abstract Posted when an image upload receives a progress update.
@discussion The userInfo dictionary contains the UIImage being uploaded, as well as an NSNumber reflecting the current progress. Use AVAConversationImageKey and AVAConversationProgressKey to access these values.
This notification is guaranteed to fire on the main thread.
See
AVAConversationImageKeySee
AVAConversationProgressKeyDeclaration
Objective-C
extern NSString *const _Nonnull AVAConversationImageUploadProgressDidChangeNotificationSwift
static let AVAConversationImageUploadProgressDidChange: NSNotification.Name -
@abstract Posted when an image upload completes, either in success or failure.
@discussion The userInfo dictionary contains the UIImage that was uploaded. Use AVAConversationImageKey to access this value.
If the upload succeeded, the userInfo dictionary will also include the AVAMessage instance of the new message. Use AVAConversationMessageKey to access this value. If the upload failed, the userInfo dictionary will include the NSError that occurred. Use AVAConversationErrorKey to access this value.
This notification is guaranteed to fire on the main thread.
See
AVAMessageSee
AVAConversationImageKeySee
AVAConversationMessageKeySee
AVAConversationErrorKeyDeclaration
Objective-C
extern NSString *const _Nonnull AVAConversationImageUploadCompletedNotificationSwift
static let AVAConversationImageUploadCompleted: NSNotification.Name -
@abstract Posted when a file upload begins.
@discussion The userInfo dictionary contains the url of the file to upload. Use AVAConversationFileKey to access this value.
This notification is guaranteed to fire on the main thread.
See
AVAConversationFileKeyDeclaration
Objective-C
extern NSString *const _Nonnull AVAConversationFileUploadDidStartNotificationSwift
static let AVAConversationFileUploadDidStart: NSNotification.Name -
@abstract Posted when a file upload receives a progress update.
@discussion The userInfo dictionary contains the url of the file being uploaded, as well as an NSNumber reflecting the current progress. Use AVAConversationFileKey and AVAConversationProgressKey to access these values.
This notification is guaranteed to fire on the main thread.
See
AVAConversationFileKeySee
AVAConversationProgressKeyDeclaration
Objective-C
extern NSString *const _Nonnull AVAConversationFileUploadProgressDidChangeNotificationSwift
static let AVAConversationFileUploadProgressDidChange: NSNotification.Name -
@abstract Posted when a file upload completes, either in success or failure.
@discussion The userInfo dictionary contains the url of the file that was uploaded. Use AVAConversationFileKey to access this value.
If the upload succeeded, the userInfo dictionary will also include the AVAMessage instance of the new message. Use AVAConversationMessageKey to access this value. If the upload failed, the userInfo dictionary will include the NSError that occurred. Use AVAConversationErrorKey to access this value.
This notification is guaranteed to fire on the main thread.
See
AVAMessageSee
AVAConversationFileKeySee
AVAConversationMessageKeySee
AVAConversationErrorKeyDeclaration
Objective-C
extern NSString *const _Nonnull AVAConversationFileUploadCompletedNotificationSwift
static let AVAConversationFileUploadCompleted: NSNotification.Name -
@abstract Posted when new messages are received from the server.
@discussion The userInfo dictionary contains an NSArray of AVAMessage objects. Use AVAConversationNewMessagesKey to access this value.
See
AVAMessageSee
AVAConversationNewMessagesKeyDeclaration
Objective-C
extern NSString *const _Nonnull AVAConversationDidReceiveMessagesNotificationSwift
static let AVAConversationDidReceiveMessages: NSNotification.Name -
@abstract Posted when an operation to load previous messages in a conversation has been completed
@discussion This notification is posted as the result of [AVAConversation loadPreviousMessages]
If the operation succeeded, the object returned by this notification will include the updated array of messages If the operation failed, the userInfo dictionary will contain an “error” object with the response error
See
AVAMessageSee
AVAConversationPreviousMessagesKeyDeclaration
Objective-C
extern NSString *const _Nonnull AVAConversationDidReceivePreviousMessagesNotificationSwift
static let AVAConversationDidReceivePreviousMessages: NSNotification.Name -
@abstract Posted when a conversation activity has been created, such as typing start/stop
See
AVAConversationActivitySee
AVAConversationActivityKeyDeclaration
Objective-C
extern NSString *const _Nonnull AVAConversationDidReceiveActivityNotificationSwift
static let AVAConversationDidReceiveActivity: NSNotification.Name -
@abstract A key whose value is an NSArray of AVAMessage objects.
@discussion This key is used with AVAConversationDidReceiveMessagesNotification notification.
See
AVAConversationDidReceiveMessagesNotificationDeclaration
Objective-C
extern NSString *const _Nonnull AVAConversationNewMessagesKeySwift
let AVAConversationNewMessagesKey: String -
@abstract A key whose value is an NSArray of AVAMessage objects
@discussion This key is used with AVAConversationDidReceivePreviousMessagesNotification notification
See
AVAConversationDidReceivePreviousMessagesNotificationDeclaration
Objective-C
extern NSString *const _Nonnull AVAConversationPreviousMessagesKeySwift
let AVAConversationPreviousMessagesKey: String -
@abstract A key whose value is a UIImage which represents an image being uploaded.
@discussion This key is used with AVAConversationImageUploadDidStartNotification, AVAConversationImageUploadProgressDidChangeNotification, and AVAConversationImageUploadCompletedNotification notifications.
See
AVAConversationImageUploadDidStartNotificationSee
AVAConversationImageUploadProgressDidChangeNotificationSee
AVAConversationImageUploadCompletedNotificationDeclaration
Objective-C
extern NSString *const _Nonnull AVAConversationImageKeySwift
let AVAConversationImageKey: String -
@abstract A key whose value is an NSURL which represents a file being uploaded.
@discussion This key is used with AVAConversationFileUploadDidStartNotification, AVAConversationFileUploadProgressDidChangeNotification, and AVAConversationFileUploadCompletedNotification notifications.
See
AVAConversationFileUploadDidStartNotificationSee
AVAConversationFileUploadProgressDidChangeNotificationSee
AVAConversationFileUploadCompletedNotificationDeclaration
Objective-C
extern NSString *const _Nonnull AVAConversationFileKeySwift
let AVAConversationFileKey: String -
@abstract A key whose value is an NSError.
@discussion This key is used with AVAConversationImageUploadCompletedNotification notification.
See
AVAConversationImageUploadCompletedNotificationDeclaration
Objective-C
extern NSString *const _Nonnull AVAConversationErrorKeySwift
let AVAConversationErrorKey: String -
@abstract A key whose value is an AVAMessage object representing the newly created message.
@discussion This key is used with AVAConversationImageUploadCompletedNotification notification.
See
AVAConversationImageUploadCompletedNotificationDeclaration
Objective-C
extern NSString *const _Nonnull AVAConversationMessageKeySwift
let AVAConversationMessageKey: String -
@abstract A key whose value is an NSNumber reflecting the current progress of an image upload.
@discussion This key is used with AVAConversationImageUploadProgressDidChangeNotification notification.
See
AVAConversationImageUploadProgressDidChangeNotificationDeclaration
Objective-C
extern NSString *const _Nonnull AVAConversationProgressKeySwift
let AVAConversationProgressKey: String -
@abstract A key whose value is a AVAConversationActivity object representing the newly created activity
@discussion This key is used with AVAConversationDidReceiveActivityNotification notification.
See
AVAConversationDidReceiveActivityNotificationDeclaration
Objective-C
extern NSString *const _Nonnull AVAConversationActivityKeySwift
let AVAConversationActivityKey: String -
@abstract An activity type indicating that a participant of the converation started typing a response
Declaration
Objective-C
extern NSString *const _Nonnull AVAConversationActivityTypeTypingStartSwift
let AVAConversationActivityTypeTypingStart: String -
@abstract An activity type indicating that a participant of the converation stopped typing a response
Declaration
Objective-C
extern NSString *const _Nonnull AVAConversationActivityTypeTypingStopSwift
let AVAConversationActivityTypeTypingStop: String -
@abstract An activity type indicating that a participant of the converation recently read the user message
This event type is triggered for the current user when the conversation is read on a different device.
Declaration
Objective-C
extern NSString *const _Nonnull AVAConversationActivityTypeConversationReadSwift
let AVAConversationActivityTypeConversationRead: String -
@abstract An activity type indicating that the current user was added to a conversation
Declaration
Objective-C
extern NSString *const _Nonnull AVAConversationActivityTypeConversationAddedSwift
let AVAConversationActivityTypeConversationAdded: String -
@abstract An activity type indicating that the current user was removed from a conversation
Declaration
Objective-C
extern NSString *const _Nonnull AVAConversationActivityTypeConversationRemovedSwift
let AVAConversationActivityTypeConversationRemoved: String -
@abstract An activity type indicating that another user was added to a conversation that the current user is part of
Declaration
Objective-C
extern NSString *const _Nonnull AVAConversationActivityTypeParticipantAddedSwift
let AVAConversationActivityTypeParticipantAdded: String -
@abstract An activity type indicating that another user was removed from a conversation that the current user is part of
Declaration
Objective-C
extern NSString *const _Nonnull AVAConversationActivityTypeParticipantRemovedSwift
let AVAConversationActivityTypeParticipantRemoved: String -
@abstract A key whose value is an NSString representing the business name.
@discussion This key is used in the AVAConversationActivity data object.
Declaration
Objective-C
extern NSString *const _Nonnull AVAConversationActivityDataNameKeySwift
let AVAConversationActivityDataNameKey: String -
@abstract A key whose value is an NSString representing the URL of the business avatar.
@discussion This key is used in the AVAConversationActivity data object.
Declaration
Objective-C
extern NSString *const _Nonnull AVAConversationActivityDataAvatarUrlKeySwift
let AVAConversationActivityDataAvatarUrlKey: String -
@abstract Notification that is fired when a message fails to upload.
Declaration
Objective-C
extern NSString *const _Nonnull AVAMessageUploadFailedNotificationSwift
static let AVAMessageUploadFailed: NSNotification.Name -
@abstract Notification that is fired when a message uploads successfully.
Declaration
Objective-C
extern NSString *const _Nonnull AVAMessageUploadCompletedNotificationSwift
static let AVAMessageUploadCompleted: NSNotification.Name -
@abstract A type of message that contains an image, text, and/or action buttons
Declaration
Objective-C
extern NSString *const _Nonnull AVAMessageTypeImageSwift
let AVAMessageTypeImage: String -
@abstract A type of message that contains text and/or action buttons
Declaration
Objective-C
extern NSString *const _Nonnull AVAMessageTypeTextSwift
let AVAMessageTypeText: String -
@abstract A type of message that contains a location
Declaration
Objective-C
extern NSString *const _Nonnull AVAMessageTypeLocationSwift
let AVAMessageTypeLocation: String -
@abstract A type of message that contains a file and/or text
Declaration
Objective-C
extern NSString *const _Nonnull AVAMessageTypeFileSwift
let AVAMessageTypeFile: String -
@abstract A type of message that contains a horizontally scrollable set of items
Declaration
Objective-C
extern NSString *const _Nonnull AVAMessageTypeCarouselSwift
let AVAMessageTypeCarousel: String -
@abstract A type of message that contains a vertically scrollable set of items
Declaration
Objective-C
extern NSString *const _Nonnull AVAMessageTypeListSwift
let AVAMessageTypeList: String -
@abstract When added to allowedMenuItems, enables the option to take a photo from the conversation view
Declaration
Objective-C
extern NSString *const _Nonnull AVAMenuItemCameraSwift
let AVAMenuItemCamera: String -
@abstract When added to allowedMenuItems, enables the option to select an image or video from gallery from the conversation view
Declaration
Objective-C
extern NSString *const _Nonnull AVAMenuItemGallerySwift
let AVAMenuItemGallery: String -
@abstract When added to allowedMenuItems, enables the option to upload a document from the conversation view
Declaration
Objective-C
extern NSString *const _Nonnull AVAMenuItemDocumentSwift
let AVAMenuItemDocument: String -
@abstract When added to allowedMenuItems, enables the option to share location from the conversation view
Declaration
Objective-C
extern NSString *const _Nonnull AVAMenuItemLocationSwift
let AVAMenuItemLocation: String
Constants Reference