MoEngageInboxEntry
@objc
public class MoEngageInboxEntry : NSObject, NSCoding, MoEngageDataModel
Inbox Message model
-
Declaration
Swift
public static var flushDuration: DispatchTimeInterval
-
MoEngage Account Identifier
Declaration
Swift
@objc public let appID: String
-
Unique campaign Identifier
Declaration
Swift
@objc public var campaignID: String?
-
Entire notification payload
Declaration
Swift
@objc public var notificationPayloadDict: [String : Any]
-
Dict which contains additional key-value for when Navigate To Screen action is performed.
Declaration
Swift
@objc public var screenDataDict: [String : Any]
-
Custom moengage dict in notification payload
Declaration
Swift
@objc public var moengageDict: [String : Any]
-
Notification title
Declaration
Swift
@objc public let notificationTitle: String
-
Notification subtitle
Declaration
Swift
@objc public let notificationSubTitle: String
-
Notification body
Declaration
Swift
@objc public var notificationBody: String
-
Notification sound
Declaration
Swift
@objc public let notificationSound: String?
-
Media url of the basic notification
Declaration
Swift
@objc public let notificationMediaURL: String?
-
TimeStamp when notification is received by the device
Declaration
Swift
@objc public internal(set) var receivedDate: Date? { get }
-
TimeStamp when notification is clicked by the user
Declaration
Swift
@objc public internal(set) var clickedDate: Date? { get }
-
Inbox expiry date post which message will be removed from inbox. By defauly its 30 days
Declaration
Swift
@objc public var inboxExpiryDate: Date?
-
If the action is Navigate to Screen, then
screenName
indicates the value.Declaration
Swift
@objc public let screenName: String?
-
If the action is DeepLink, the
deepLinkURL
indicates the urlDeclaration
Swift
@objc public let deepLinkURL: String?
-
If the action is RichLanding, then
richLandingURL
indicates the value.Declaration
Swift
@objc public let richLandingURL: String?
-
If the action is Coupon Code, then
couponCode
indicates the value.Declaration
Swift
@objc public let couponCode: String?
-
Value indicates if the inbox message is clicked by the user.
Declaration
Swift
@objc public internal(set) var isRead: Bool { get }
-
The
groupKey
property used to identify group of notifications. When multiple related notifications are sent, they can be bundled together and displayed as one group with the help of this key, If there’s no grouping of notifications or if a notification does not belong to any group,groupKey
could benil
.Declaration
Swift
@objc public let groupKey: String?
-
The
collapseId
property is used for the collapsing/replacement feature of iOS notifications. The system uses this identifier to replace an existing notification with a new one having the samecollapseId
, keeping the most recent notification and discarding others. If the notifications are not meant to be collapsed/replaced, thecollapseId
would benil
.Declaration
Swift
@objc public let collapseId: String?
-
Timestamp of notification sent - currently not used in iOS as system replaces notifications by itself, added to be in parity with Android & Hybrids
Declaration
Swift
@objc public internal(set) var sentTime: Date? { get }
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public override var description: String { get }