VivochaNotification
@interface VivochaNotification : NSObject
Payload for a NSNotification sent by the VivochaSDK
-
@property (nonatomic, retain) NSString *name;Notification name
-
@property (nonatomic, retain) NSError *error;Notification error, if available
-
@property (nonatomic, retain) id payload;Notification payload, if available
-
+ (VivochaNotification *)vivochaNotificationWithName:(NSString *)name andPayload:(id)payload andError:(NSError *)error;Factory method for a VivochaNotification
Parameters
namethe notification name
payloadthe notification payload
errorthe notification payload, in case of error
Return Value
the notification
-
+ (void)postVivochaNotificationWithName:(NSString *)in_name andPayload:(id)in_payload andError:(NSError *)in_error;Posts a VivochaNotification through the NSNotificationCenter’s default center
Parameters
in_namethe notification name
in_payloadthe notification payload
in_errorthe notification payload, in case of error
-
+ (BOOL)isVivochaNotification:(NSDictionary *)notificationUserInfo;Returns YES if a remote notification is from Vivocha