UAInboxUtils

Objective-C

@interface UAInboxUtils : NSObject

Swift

class UAInboxUtils : NSObject

Rich Push helper methods.

Inbox Utility Methods

  • Retrieves an inbox message ID from a notification dictionary

    Declaration

    Objective-C

    + (nullable NSString *)inboxMessageIDFromNotification:
        (nonnull NSDictionary *)notification;

    Swift

    class func inboxMessageID(fromNotification notification: [AnyHashable : Any]) -> String?

    Parameters

    notification

    The notification dictionary.

    Return Value

    a message ID if found, nil otherwise

  • Retrieves an inbox message ID from an NSArray containing the ID or if the value is the ID.

    Declaration

    Objective-C

    + (nullable NSString *)inboxMessageIDFromValue:(nonnull id)values;

    Swift

    class func inboxMessageID(fromValue values: Any) -> String?

    Parameters

    values

    The value of the inbox message ID from a notification.

    Return Value

    a message ID if found, nil otherwise

  • Gets the user auth header string for the provided user data.

    Declaration

    Objective-C

    + (nonnull NSString *)userAuthHeaderString:(nonnull UAUserData *)userData;

    Swift

    class func userAuthHeaderString(_ userData: UAUserData) -> String

    Parameters

    userData

    The user data.