MCEEventService Class Reference

Inherits from NSObject
Declared in MCEEventService.h
MCEEventService.m

Overview

The MCEEventService class allows the developer to queue events to the server. If errors occur the update will retry automatically and back-off as needed. The eventQueue method returns the current task queue object that processes updates sent to this class

+ sharedInstance

This method returns the singleton object of this class.

+ (MCEEventService *)sharedInstance

Discussion

This method returns the singleton object of this class.

Declared In

MCEEventService.h

– addEvent:immediate:

The addEvent:immediate: method is used to add an event to the event queue and optionally flush the queue.

- (void)addEvent:(MCEEvent *)event immediate:(BOOL)immediate

Parameters

event

An instance of MCEEvent to be added to the event queue

immediate

When set to TRUE, the queue is flushed immediately, sending all events queued.

Discussion

The addEvent:immediate: method is used to add an event to the event queue and optionally flush the queue.

Declared In

MCEEventService.h

– sendEvents

The sendEvents method flushes the queue to the server on demand.

- (void)sendEvents

Discussion

The sendEvents method flushes the queue to the server on demand.

Declared In

MCEEventService.h

– recordViewForInboxMessage:attribution:

Record a view of an inbox message

- (void)recordViewForInboxMessage:(MCEInboxMessage *)inboxMessage attribution:(NSString *)attribution

Parameters

inboxMessage

An MCEInboxMessage object to record view for

attribution

A string representing the campaign name or attribution of the push message associated with the view event.

Please note that recordViewForInboxMessage:attribution: is deprecated, please use recordViewForInboxMessage:attribution:mailingId: instaed.

Discussion

Record a view of an inbox message

Declared In

MCEEventService.h

– recordViewForInboxMessage:attribution:mailingId:

Record a view of an inbox message including a mailing id

- (void)recordViewForInboxMessage:(MCEInboxMessage *)inboxMessage attribution:(NSString *)attribution mailingId:(NSNumber *)mailingId

Parameters

inboxMessage

An MCEInboxMessage object to record view for

attribution

A string representing the campaign name or attribution of the push message associated with the view event.

mailingId

A string representing the mailing id of the push message associated with the view event.

Discussion

Record a view of an inbox message including a mailing id

Declared In

MCEEventService.h

– sendPushEnabledEvent

Record if push is enabled or disabled

- (void)sendPushEnabledEvent

Discussion

Record if push is enabled or disabled

Declared In

MCEEventService.h