OMCAnalyticsDelegate Protocol Reference

Conforms to NSObject
Declared in OMCAnalyticsDelegate.h

Overview

This protocol defines the optional methods used to receive updates from the Analytics service.

– analytics:didPostEvents:response:responseData:

Notifies the delegate that the analytics service successfully posted events to the analytics server. The delegate will be notified on the main dispatch queue.

- (void)analytics:(OMCAnalytics *)analytics didPostEvents:(NSURLRequest *)request response:(NSHTTPURLResponse *)response responseData:(NSData *)responseData

Parameters

analytics

The analytics that generated the event.

request

The REST request used to post the analytics events to the analytics server.

response

The REST server response to the posting of analytics events.

responseData

The data returned by the analytics server in response to the posting of analytics events.

Declared In

OMCAnalyticsDelegate.h

– analytics:didFailWithError:

Notifies the delegate that the analytics service suffered the specified error. The delegate will be notified on the main dispatch queue.

- (void)analytics:(OMCAnalytics *)analytics didFailWithError:(NSError *)error

Parameters

analytics

The analytics that generated the event.

error

The error generated by the analytics service, typically related to posting analytics events.

Declared In

OMCAnalyticsDelegate.h