Conforms to NSObject
Declared in EQATECAnalyticsMonitor.h

Overview

A storage protocol for loading and save data for a given product ID. This protocol can be specified on the EQATECAnalyticsMonitorSettings instance in order to better control where the monitor persists data.

Creating and utilizing a custom implementation of this interface may be relevant if you require special handling of where the monitor saves data. This could be relevant for e.g. embedded devices or for situation where there is a need to explicitly know where the data is being stored.

Instance Methods

readAbandonedSessionDataForProductId:

Returns any abandoned session data that can be found for a given product.

- (NSData *)readAbandonedSessionDataForProductId:(NSString *)productId

Parameters

productId

The product ID

Discussion

This method is called repeatedly by the monitor to retrieve old data that has been abandoned from previous sessions from the same product. Abandoned data is consumed by the currently running monitor and delivered to the server. If no abandoned data exists, implementors should return nil or empty.

Declared In

EQATECAnalyticsMonitor.h

saveSessionData:ofType:

Save data for a given product ID

- (void)saveSessionData:(NSData *)data ofType:(EQATECStorageDataDescriptor *)descriptor

Parameters

data

The data to save

descriptor

The storage descriptor

Declared In

EQATECAnalyticsMonitor.h

savedSessionDataOfType:

Returns existing data for the product. If no data is available, implementors should return nil or empty.

- (NSData *)savedSessionDataOfType:(EQATECStorageDataDescriptor *)descriptor

Parameters

descriptor

The storage descriptor

Declared In

EQATECAnalyticsMonitor.h