SFSDKEventStoreManager Class Reference

Inherits from NSObject
Declared in SFSDKEventStoreManager.h

  storeDirectory

@property (nonatomic, strong, readonly, nonnull) NSString *storeDirectory

  dataEncryptorBlock

@property (nonatomic, strong, readonly, nullable) DataEncryptorBlock dataEncryptorBlock

  dataDecryptorBlock

@property (nonatomic, strong, readonly, nullable) DataDecryptorBlock dataDecryptorBlock

  numStoredEvents

@property (nonatomic, assign, readonly) NSInteger numStoredEvents

  loggingEnabled

@property (nonatomic, assign, readwrite, getter=isLoggingEnabled) BOOL loggingEnabled

  maxEvents

@property (nonatomic, assign, readwrite) NSInteger maxEvents

– initWithStoreDirectory:dataEncryptorBlock:dataDecryptorBlock:

Parameterized initializer.

- (nonnull instancetype)initWithStoreDirectory:(nonnull NSString *)storeDirectory dataEncryptorBlock:(nullable DataEncryptorBlock)dataEncryptorBlock dataDecryptorBlock:(nullable DataDecryptorBlock)dataDecryptorBlock

Parameters

storeDirectory

Store directory.

dataEncryptorBlock

Block that performs encryption.

dataDecryptorBlock

Block that performs decryption.

Return Value

Instance of this class.

Declared In

SFSDKEventStoreManager.h

– storeEvent:

Stores an event to the filesystem. A combination of event’s unique ID and filename suffix is used to generate a unique filename per event.

- (void)storeEvent:(nullable SFSDKInstrumentationEvent *)event

Parameters

event

Event to be persisted.

Declared In

SFSDKEventStoreManager.h

– storeEvents:

Stores a list of events to the filesystem.

- (void)storeEvents:(nullable NSArray<SFSDKInstrumentationEvent*> *)events

Parameters

events

List of events.

Declared In

SFSDKEventStoreManager.h

– fetchEvent:

Returns a specific event stored on the filesystem.

- (nullable SFSDKInstrumentationEvent *)fetchEvent:(nullable NSString *)eventId

Parameters

eventId

Unique identifier for the event.

Return Value

Event.

Declared In

SFSDKEventStoreManager.h

– fetchAllEvents

Returns all the events stored on the filesystem for that unique identifier.

- (nullable NSArray<SFSDKInstrumentationEvent*> *)fetchAllEvents

Return Value

List of events.

Declared In

SFSDKEventStoreManager.h

– deleteEvent:

Deletes a specific event stored on the filesystem.

- (BOOL)deleteEvent:(nullable NSString *)eventId

Parameters

eventId

Unique identifier for the event.

Return Value

True - if successful, False - otherwise.

Declared In

SFSDKEventStoreManager.h

– deleteEvents:

Deletes the events stored on the filesystem for that unique identifier.

- (void)deleteEvents:(nullable NSArray<NSString*> *)eventIds

Declared In

SFSDKEventStoreManager.h

– deleteAllEvents

Deletes all the events stored on the filesystem for that unique identifier.

- (void)deleteAllEvents

Declared In

SFSDKEventStoreManager.h