public class DbxAccount
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
DbxAccount.Listener
Callback interface for listeners to be notified when a
specific account changes.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(DbxAccount.Listener l)
Adds a DbxAccount.Listener which will be called each time the
account changes: i.e.
|
DbxAccountInfo |
getAccountInfo()
Returns the
DbxAccountInfo for this account, if available, or
null otherwise. |
java.lang.String |
getUserId()
Returns the user ID for this account.
|
boolean |
isLinked()
Returns whether this account is currently linked.
|
void |
removeListener(DbxAccount.Listener l)
Removes a listener previously added by a call to
DbxAccount.addListener(com.dropbox.sync.android.DbxAccount.Listener) . |
void |
unlink()
Unlinks this app from the user's Dropbox account.
|
public java.lang.String getUserId()
public boolean isLinked()
public DbxAccountInfo getAccountInfo()
DbxAccountInfo
for this account, if available, or
null
otherwise. To be notified when account info is available or
updated, see DbxAccount.addListener(com.dropbox.sync.android.DbxAccount.Listener)
.public void unlink()
DbxFileSystem
and delete any
locally cached data for the user.
This method has no effect if this account isn't linked.
public void addListener(DbxAccount.Listener l)
Registering the same listener more than once will have no
additional effect. A single call to DbxAccount.removeListener(com.dropbox.sync.android.DbxAccount.Listener)
will still remove it.
public void removeListener(DbxAccount.Listener l)
DbxAccount.addListener(com.dropbox.sync.android.DbxAccount.Listener)
.