PushNotificationData
@objc(ZDKPushNotificationData)
public final class PushNotificationData : NSObject
PushNotificationData can be used to gather information about Chat related push notifications
-
Enum representing the different types of notifications that can be received for Chat
See moreDeclaration
Swift
@objc(ZDKPushNotificationType) public enum PushNotificationType : Int -
type of
PushNotification, can be eitherchatEndedormessageDeclaration
Swift
@objc public let type: PushNotificationType -
raw payload from received remote push notification
Declaration
Swift
@objc public let userInfo: [AnyHashable : Any] -
Instantiates the Data object from given push notification payload
Declaration
Swift
@objc public static func data(for userInfo: [AnyHashable : Any]) -> PushNotificationData?Parameters
userInfoPush notification payload
Return Value
type-safe push notification object
-
Returns true if the push notification payload belongs to
ChatDeclaration
Swift
@objc public static func isChatPushNotification(userInfo: [AnyHashable : Any]) -> BoolParameters
userInfoPush notification payload
-
Returns a Boolean value that indicates whether the receiver and a given object are equal.
Declaration
Swift
@objc override public func isEqual(_ object: Any?) -> BoolParameters
objectthe object to compare against
Install in Dash
PushNotificationData Class Reference