SFSDKLoginHostStorage Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | SFSDKLoginHostStorage.h |
Overview
This class manages the list of login hosts as well its persistence. Currently this list is persisted in the user defaults.
+ sharedInstance
Returns the shared instance of this class.
+ (SFSDKLoginHostStorage *)sharedInstanceDeclared In
SFSDKLoginHostStorage.h
– addLoginHost:
Adds a new login host.
- (void)addLoginHost:(SFSDKLoginHost *)loginHostParameters
loginHost |
Login host to be added |
|---|
Declared In
SFSDKLoginHostStorage.h
– removeLoginHostAtIndex:
Removes the login host at the specified index.
- (void)removeLoginHostAtIndex:(NSUInteger)indexParameters
index |
Index of the login host |
|---|
Declared In
SFSDKLoginHostStorage.h
– indexOfLoginHost:
Returns the index of the specified host if exists.
- (NSUInteger)indexOfLoginHost:(SFSDKLoginHost *)hostParameters
host |
Requested login host |
|---|
Declared In
SFSDKLoginHostStorage.h
– loginHostAtIndex:
Returns the login host at the specified index.
- (SFSDKLoginHost *)loginHostAtIndex:(NSUInteger)indexParameters
index |
Requested index |
|---|
Declared In
SFSDKLoginHostStorage.h
– loginHostForHostAddress:
Returns the login host with a particular host address, if any.
- (nullable SFSDKLoginHost *)loginHostForHostAddress:(NSString *)hostAddressParameters
hostAddress |
Address to be queried |
|---|
Declared In
SFSDKLoginHostStorage.h
– removeAllLoginHosts
Removes all the login hosts.
- (void)removeAllLoginHostsDeclared In
SFSDKLoginHostStorage.h
– numberOfLoginHosts
Returns the number of login hosts.
- (NSUInteger)numberOfLoginHostsDeclared In
SFSDKLoginHostStorage.h
– save
Stores all the login host except the non-deletable ones in the user defaults.
- (void)saveDeclared In
SFSDKLoginHostStorage.h