TEALVisitorProfile Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | NSCoding NSCopying NSSecureCoding |
| Declared in | TEALVisitorProfile.h |
Overview
This class represents a visitor profile retrieved from AudienceStream by the Collect library.
This is meant as a convenience to interact with a profile in a native, typed, safe manner. To access the “raw” profile as was deserialized from the returned JSON use the rawProfile method.
– initWithVisitorID:
Create instance with vistorID
- (instancetype)initWithVisitorID:(NSString *)visitorIDParameters
visitorID |
Current visitorID of user |
|---|
Return Value
Instance of TEALVisitorProfile
Declared In
TEALVisitorProfile.h
– isValid
Valid flag for Profile instance
- (BOOL)isValidReturn Value
YES if visitorID is valid, otherwise NO
Declared In
TEALVisitorProfile.h
– visitorID
Visitor ID addociated with this profile
- (NSString *)visitorIDReturn Value
String representation of user’s vistorID
Declared In
TEALVisitorProfile.h
– audiences
Audiences this visitor’s profile is associated with.
- (NSArray *)audiencesReturn Value
Array of TEALVisitorProfileAudienceAttribute objects or nil if none exist
Declared In
TEALVisitorProfile.h
– badges
Badges this visitor’s profile is associated with.
- (NSArray *)badgesReturn Value
Array of TEALVisitorProfileBadgeAttribute objects or nil if none exist
Declared In
TEALVisitorProfile.h
– dates
Dates this visitor’s profile is associated with.
- (NSArray *)datesReturn Value
Array of TEALVisitorProfileDateAttribute objects or nil if none exist
Declared In
TEALVisitorProfile.h
– flags
Flags this visitor’s profile is associated with.
- (NSArray *)flagsReturn Value
Array of TEALVisitorProfileFlagAttribute objects or nil if none exist
Declared In
TEALVisitorProfile.h
– metrics
Metrics this visitor’s profile is associated with.
- (NSArray *)metricsReturn Value
Array of TEALVisitorProfileMetricAttribute objects or nil if none exist
Declared In
TEALVisitorProfile.h
– properties
Properties or “Traits” this visitor’s profile is associated with.
- (NSArray *)propertiesReturn Value
Array of TEALVisitorProfilePropertyAttribute objects or nil if none exist
Declared In
TEALVisitorProfile.h
– currentVisit
Current visit instance, similar to the TEALVisitorProfile but contains only attributes related to the users current visit.
- (TEALVisitorProfileCurrentVisit *)currentVisitReturn Value
Object representing the visitor profile’s current visit with type TEALVisitorProfileCurrentVisit or nil if current visit has not yet been established.
Declared In
TEALVisitorProfile.h
– rawProfile
Raw profile returned from AudienceStream. JSON object converted to valid native objects
- (NSDictionary *)rawProfileReturn Value
NSDictionary of raw profile objects
Declared In
TEALVisitorProfile.h