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 *)sharedInstance
Declared In
SFSDKLoginHostStorage.h
– addLoginHost:
Adds a new login host.
- (void)addLoginHost:(SFSDKLoginHost *)loginHost
Parameters
loginHost |
Login host to be added |
---|
Declared In
SFSDKLoginHostStorage.h
– removeLoginHostAtIndex:
Removes the login host at the specified index.
- (void)removeLoginHostAtIndex:(NSUInteger)index
Parameters
index |
Index of the login host |
---|
Declared In
SFSDKLoginHostStorage.h
– indexOfLoginHost:
Returns the index of the specified host if exists.
- (NSUInteger)indexOfLoginHost:(SFSDKLoginHost *)host
Parameters
host |
Requested login host |
---|
Declared In
SFSDKLoginHostStorage.h
– loginHostAtIndex:
Returns the login host at the specified index.
- (SFSDKLoginHost *)loginHostAtIndex:(NSUInteger)index
Parameters
index |
Requested index |
---|
Declared In
SFSDKLoginHostStorage.h
– loginHostForHostAddress:
Returns the login host with a particular host address, if any.
- (nullable SFSDKLoginHost *)loginHostForHostAddress:(NSString *)hostAddress
Parameters
hostAddress |
Address to be queried |
---|
Declared In
SFSDKLoginHostStorage.h
– removeAllLoginHosts
Removes all the login hosts.
- (void)removeAllLoginHosts
Declared In
SFSDKLoginHostStorage.h
– numberOfLoginHosts
Returns the number of login hosts.
- (NSUInteger)numberOfLoginHosts
Declared In
SFSDKLoginHostStorage.h
– save
Stores all the login host except the non-deletable ones in the user defaults.
- (void)save
Declared In
SFSDKLoginHostStorage.h