#import <BBGMultiAccountManager.h>
Public Member Functions | |
(void) | - registerWithClientId:clientSecret:scope: |
Mandatory! Set the Google Parameters necessary | |
(void) | - addAccount |
Start the procedures to authenticate your application against the scopes. | |
(void) | - addAccountWithCompletionBlock: |
Start the procedures to authenticate your application against the scopes. | |
(void) | - accountsWithCompletionBlock: |
Return the list of existing account. | |
(void) | - removeAccount: |
Remove the provided Account, if exist. | |
(void) | - removeAccount:withCompletionBlock: |
Remove the provided Account, if exist. | |
(void) | - setPrincipalAccount: |
Set this account as principal. | |
(void) | - setDefaultAccount:withCompletionBlock: |
Set this account as principal. |
- (void) accountsWithCompletionBlock: | (NSArray *accounts, NSError *error) | block |
Return the list of existing account.
block | Completion block |
- (void) addAccount |
Start the procedures to authenticate your application against the scopes.
- (void) addAccountWithCompletionBlock: | (id<BBAccount> account, NSError *error) | block |
Start the procedures to authenticate your application against the scopes.
block | Completion block |
- (void) registerWithClientId: | (NSString *) | clientID | |
clientSecret: | (NSString *) | clientSecret | |
scope: | (NSString *) | scope | |
Mandatory! Set the Google Parameters necessary
to login against your application.
clientID | Your unique Google API identificator |
clientSecret | Your secret Google API code |
scope | The scope of the service you want to authorize |
- (void) removeAccount: | (id<BBAccount>) | account |
Remove the provided Account, if exist.
account | The account to delete |
- (void) removeAccount: | (id<BBAccount>) | account | |
withCompletionBlock: | (BOOL success, NSError *error) | block | |
Remove the provided Account, if exist.
account | The account to delete |
block | Completion block |
- (void) setDefaultAccount: | (id<BBAccount>) | account | |
withCompletionBlock: | (BOOL success, NSError *error) | block | |
Set this account as principal.
NB: only one account can be the principal.
account | The account to mark as principal |
block | Completion block |
- (void) setPrincipalAccount: | (id< BBAccount >) | account |
Set this account as principal.
NB: only one account can be the principal.
account | The account to mark as principal |