FSUserProfile Class Reference
Inherits from | NSObject |
---|---|
Declared in | FSUserProfile.h |
Overview
The FSUserProfile
provides user profile information to the ForeSee SDK
Instances of this class can be registered with the SDK using @c ForeSee#setUserProfile:
email
An email address for the user
@property (nonatomic, copy) NSString *email
Declared In
FSUserProfile.h
phoneNumber
A phone number for the user
@property (nonatomic, copy) NSString *phoneNumber
Declared In
FSUserProfile.h
facebookHandle
A Facebook handle for the user
@property (nonatomic, copy) NSString *facebookHandle
Declared In
FSUserProfile.h
twitterHandle
A Twitter handle for the user
@property (nonatomic, copy) NSString *twitterHandle
Declared In
FSUserProfile.h
– setString:forKey:
Sets a string value for the given key for this user.
- (void)setString:(NSString *)value forKey:(NSString *)key
Parameters
value |
a string value |
---|---|
key |
the key |
Declared In
FSUserProfile.h
– setNumber:forKey:
Sets a numeric value for the given key for this user.
- (void)setNumber:(NSNumber *)value forKey:(NSString *)key
Parameters
value |
a numeric value |
---|---|
key |
the key |
Declared In
FSUserProfile.h
– setBoolean:forKey:
Sets a boolean value for the given key for this user.
- (void)setBoolean:(BOOL)value forKey:(NSString *)key
Parameters
value |
a boolean value |
---|---|
key |
the key |
Declared In
FSUserProfile.h
toDictionary
Creates and returns a dictionary containing all previously set user profile values.
@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSDictionary *toDictionary
Return Value
a dictionary containing all user properties
Discussion
This method returns all defined keys (i.e. those set using existing properties) and values set using the generic typed setters.
Declared In
FSUserProfile.h