EQATECStorage Protocol Reference
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.
Returns any abandoned session data that can be found for a given product.
- (NSData *)readAbandonedSessionDataForProductId:(NSString *)productId
The product ID
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.
Save data for a given product ID
- (void)saveSessionData:(NSData *)data ofType:(EQATECStorageDataDescriptor *)descriptor
The data to save
The storage descriptor