OOIQOfflineManager Class Reference

#import <OOIQOfflineManager.h>

+ Inheritance diagram for OOIQOfflineManager:

Instance Methods

(instancetype) - NS_UNAVAILABLE
 
(void) - createOfflineFile:data:
 Creates a new file for offline Analytics. More...
 
(void) - writeDataToFile:data:
 Save the given action into a file. More...
 
(NSArray *) - offlineAnalyticsFilenames
 Get all the offline files for Analytics. More...
 
(NSData *) - dataFromFile:
 Get the data from the specific file. More...
 
(void) - deleteFile:
 Delete the file for the offline analytics. More...
 
(BOOL) - fileExists:
 Verify if file exists in device. More...
 

Class Methods

(instancetype) + sharedInstance
 Initializes the IQ Offline Manager. More...
 
(NSString *) + directoryPath
 Returns the path where the offline analytics will be stored. More...
 

Properties

NSSet * actions
 

Method Documentation

- (void) createOfflineFile: (NSString *)  embedCode
data: (NSArray *)  data 

Creates a new file for offline Analytics.

Parameters
[in]embedCodeof the current asset
[in]dataof the current asset
- (NSData *) dataFromFile: (NSString *)  filename

Get the data from the specific file.

Parameters
[in]filenameof the offline file
Returns
a string with the data
- (void) deleteFile: (NSString *)  embedCode

Delete the file for the offline analytics.

Parameters
[in]embedCodeof the offline file
+ (NSString *) directoryPath

Returns the path where the offline analytics will be stored.

Returns
a string with the path

Provided by category OOIQOfflineManager(Internal).

- (BOOL) fileExists: (NSString *)  embedCode

Verify if file exists in device.

Parameters
[in]embedCodeof the offline file
Returns
YES if the file exists
- (instancetype) NS_UNAVAILABLE
- (NSArray *) offlineAnalyticsFilenames

Get all the offline files for Analytics.

Returns
an array with all the offline files for Analytics
+ (instancetype) sharedInstance

Initializes the IQ Offline Manager.

Returns
the initialized IQ Offline Manager
- (void) writeDataToFile: (NSString *)  embedCode
data: (NSData *)  data 

Save the given action into a file.

Parameters
[in]embedCodeof the current asset
[in]datawith the action and arguments

Property Documentation

- (NSSet*) actions
readnonatomicassign

The documentation for this class was generated from the following file: