DBAccount Class Reference
Inherits from | NSObject |
Declared in | DBAccount.h |
Overview
The account represents a particular user who has linked his account to your app. You can get account objects from the account manager.
Tasks
Unlinking an account
-
– unlink
This method unlinks a user’s account from your app.
Getting the current state
-
userId
The user id of the account. This can be used to associate metadata with a given account.
property -
linked
Whether the account is currently linked. Note that accounts can be unlinked via the unlink method or from the Dropbox website.
property -
info
Information about the user of this account.
property
Watching for changes
-
– addObserver:block:
Add
block
as an observer of an account to get notified whenever it’s linked or info properties change. -
– removeObserver:
Remove all blocks associated with
observer
by the addObserver:block: method.
Properties
info
Information about the user of this account.
@property (nonatomic, readonly) DBAccountInfo *info
Declared In
DBAccount.h
linked
Whether the account is currently linked. Note that accounts can be unlinked via the unlink method or from the Dropbox website.
@property (nonatomic, readonly, getter=isLinked) BOOL linked
Declared In
DBAccount.h
Instance Methods
addObserver:block:
Add block
as an observer of an account to get notified whenever it’s linked or
info properties change.
- (void)addObserver:(id)observer block:(DBObserver)block
Declared In
DBAccount.h
removeObserver:
Remove all blocks associated with observer
by the addObserver:block: method.
- (void)removeObserver:(id)observer
Declared In
DBAccount.h
unlink
This method unlinks a user’s account from your app.
- (void)unlink
Discussion
Once an account is unlinked, the local cache is deleted. If there is a filesystem object created with this account it will stop running.
Declared In
DBAccount.h