SFSDKInstrumentationEvent Class Reference
Inherits from | NSObject |
---|---|
Conforms to | NSCopying |
Declared in | SFSDKInstrumentationEvent.h |
Other Methods
deviceAppAttributes
@property (nonatomic, strong, readonly, nonnull) SFSDKDeviceAppAttributes *deviceAppAttributes
– initWithJson:
Parameterized initializer.
- (nonnull instancetype)initWithJson:(nonnull NSData *)jsonRepresentation
Parameters
jsonRepresentation |
JSON representation. |
---|
Return Value
Instance of this class.
Declared In
SFSDKInstrumentationEvent.h
– jsonRepresentation
Returns a JSON representation of this event.
- (nonnull NSData *)jsonRepresentation
Return Value
JSON representation.
Declared In
SFSDKInstrumentationEvent.h
– stringValueOfSchemaType:
Returns a string representation of schema type.
- (nonnull NSString *)stringValueOfSchemaType:(SFASchemaType)schemaType
Parameters
schemaType |
Schema type. |
---|
Return Value
String representation of schema type.
Declared In
SFSDKInstrumentationEvent.h
– stringValueOfEventType:
Returns a string representation of event type.
- (nonnull NSString *)stringValueOfEventType:(SFAEventType)eventType
Parameters
eventType |
Event type. |
---|
Return Value
String representation of event type.
Declared In
SFSDKInstrumentationEvent.h
– stringValueOfErrorType:
Returns a string representation of error type.
- (nonnull NSString *)stringValueOfErrorType:(SFAErrorType)errorType
Parameters
errorType |
Error type. |
---|
Return Value
String representation of error type.
Declared In
SFSDKInstrumentationEvent.h
Extension Methods
– initWithEventId:startTime:endTime:name:attributes:sessionId:sequenceId:senderId:senderContext:schemaType:eventType:errorType:deviceAppAttributes:connectionType:senderParentId:sessionStartTime:page:previousPage:marks:
Parameterized initializer.
- (nonnull instancetype)initWithEventId:(nonnull NSString *)eventId startTime:(NSInteger)startTime endTime:(NSInteger)endTime name:(nonnull NSString *)name attributes:(nullable NSDictionary *)attributes sessionId:(nullable NSString *)sessionId sequenceId:(NSInteger)sequenceId senderId:(nullable NSString *)senderId senderContext:(nullable NSDictionary *)senderContext schemaType:(SFASchemaType)schemaType eventType:(SFAEventType)eventType errorType:(SFAErrorType)errorType deviceAppAttributes:(nonnull SFSDKDeviceAppAttributes *)deviceAppAttributes connectionType:(nonnull NSString *)connectionType senderParentId:(nullable NSString *)senderParentId sessionStartTime:(NSInteger)sessionStartTime page:(nullable NSDictionary *)page previousPage:(nullable NSDictionary *)previousPage marks:(nullable NSDictionary *)marks
Parameters
eventId |
Event ID. |
---|---|
startTime |
Start time. |
endTime |
End time. |
name |
Name. |
attributes |
Attributes. |
sessionId |
Session ID. |
sequenceId |
Sequence ID. |
senderId |
Sender ID. |
senderContext |
Sender context. |
schemaType |
Schema type. |
eventType |
Event type. |
errorType |
Error type. |
deviceAppAttributes |
Device app attributes. |
connectionType |
Connection type. |
senderParentId |
Sender parent ID. |
sessionStartTime |
Session start time. |
page |
Page. |
previousPage |
Previous page. |
marks |
Marks. |
Return Value
Instance of this class.
Declared In
SFSDKInstrumentationEvent+Internal.h
– jsonDictionary
Returns a JSON dictionary representation of this event.
- (nonnull NSDictionary *)jsonDictionary
Return Value
JSON dictionary representation.
Declared In
SFSDKInstrumentationEvent+Internal.h