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 **)errorParameters
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 **)errorParameters
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 *)userParameters
user |
The user |
|---|
Return Value
the path to the user account plist of the specified user
Declared In
SFDefaultUserAccountPersister.h