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

    name

    the notification name

    payload

    the notification payload

    error

    the 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_name

    the notification name

    in_payload

    the notification payload

    in_error

    the notification payload, in case of error

  • + (BOOL)isVivochaNotification:(NSDictionary *)notificationUserInfo;

    Returns YES if a remote notification is from Vivocha