Untitled Reference Library

BBGMultiAccountManager Class Reference

BBGMultiAccountManager Class Reference

Declared in BBGMultiAccountManager.h

Tasks

Instance Methods

registerWithClientId:clientSecret:scope:

Mandatory! Set the Google Parameters necessary to login against your application.

- (void)registerWithClientId:(NSString *)clientID clientSecret:(NSString *)clientSecret scope:(NSString *)scope
Parameters
clientID

Your unique Google API identificator

clientSecret

Your secret Google API code

scope

The scope of the service you want to authorize

See Also
Declared In
BBGMultiAccountManager.h

addAccount

Start the procedures to authenticate your application against the scopes.

- (void)addAccount
Declared In
BBGMultiAccountManager.h

addAccountWithCompletionBlock:

Start the procedures to authenticate your application against the scopes.

- (void)addAccountWithCompletionBlock:(id<BBAccount>)account
Parameters
block

Completion block

Declared In
BBGMultiAccountManager.h

accountsWithCompletionBlock:

Return the list of existing account.

- (void)accountsWithCompletionBlock:(NSArray *)accounts
Parameters
block

Completion block

Declared In
BBGMultiAccountManager.h

removeAccount:

Remove the provided Account, if exist.

- (void)removeAccount:(id<BBAccount>)account
Parameters
account

The account to delete

Declared In
BBGMultiAccountManager.h

removeAccount:withCompletionBlock:

Remove the provided Account, if exist.

- (void)removeAccount:(id<BBAccount>)account withCompletionBlock:(BOOL)success
Parameters
account

The account to delete

block

Completion block

Declared In
BBGMultiAccountManager.h

setPrincipalAccount:

Set this account as principal.

- (void)setPrincipalAccount:(id<BBAccount>)account
Parameters
account

The account to mark as principal

Discussion

NB: only one account can be the principal.

Declared In
BBGMultiAccountManager.h

setDefaultAccount:withCompletionBlock:

Set this account as principal.

- (void)setDefaultAccount:(id<BBAccount>)account withCompletionBlock:(BOOL)success
Parameters
account

The account to mark as principal

block

Completion block

Discussion

NB: only one account can be the principal.

Declared In
BBGMultiAccountManager.h

Last updated: 2012-5-5