UAInboxUtils

@interface UAInboxUtils : NSObject

Rich Push helper 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