SFDefaultUserAccountPersister Class Reference
Inherits from | NSObject |
---|---|
Conforms to | SFUserAccountPersister |
Declared in | SFDefaultUserAccountPersister.h |
– loadUserAccountFromFile:account:error:
Loads a user account from a specified file
- (BOOL)loadUserAccountFromFile:(NSString *)filePath account:(SFUserAccount *_Nullable *_Nullable)account error:(NSError **)error
Parameters
filePath |
The file to load the user account from |
---|---|
account |
On output, contains the user account or nil if an error occurred |
error |
On output, contains the error if the method returned NO |
Return Value
YES if the method succeeded, NO otherwise
Declared In
SFDefaultUserAccountPersister.h
– saveUserAccount:toFile:error:
Updates/Saves a user account to a specified filePath
- (BOOL)saveUserAccount:(SFUserAccount *)userAccount toFile:(NSString *)filePath error:(NSError **)error
Parameters
userAccount |
On output, contains the user account or nil if an error occurred |
---|---|
filePath |
The file to save the user account to |
error |
On output, contains the error if the method returned NO |
Return Value
YES if the method succeeded, NO otherwise
Declared In
SFDefaultUserAccountPersister.h
+ userAccountPlistFileForUser:
Returns the path of the user account plist file for the specified user
+ (NSString *)userAccountPlistFileForUser:(SFUserAccount *)user
Parameters
user |
The user |
---|
Return Value
the path to the user account plist of the specified user
Declared In
SFDefaultUserAccountPersister.h