public class AccountSwitcherProxy extends Object implements LoginProxy.ProxyListener
Modifier and Type | Class and Description |
---|---|
static interface |
AccountSwitcherProxy.AccountSwitcherListener
An object that is listening to events sent by the Account Switcher Proxy.
|
Constructor and Description |
---|
AccountSwitcherProxy(android.content.Context c,
AccountSwitcherProxy.AccountSwitcherListener l,
boolean ignore) |
Modifier and Type | Method and Description |
---|---|
void |
onLoginFinished(boolean result)
Notify the caller when the proxy has finished
|
void |
switchToAccount(ExoAccount account)
Sign out the current account and sign in with the given account.
If the password is unknown, a dialog will open to let the user type it. |
public static final String TAG
public AccountSwitcherProxy(android.content.Context c, AccountSwitcherProxy.AccountSwitcherListener l, boolean ignore)
public void switchToAccount(ExoAccount account)
account
- the ExoAccount to switch topublic void onLoginFinished(boolean result)
LoginProxy.ProxyListener
onLoginFinished
in interface LoginProxy.ProxyListener
result
- true if the login is successful, false otherwiseCopyright © 2003–2016 eXo Platform SAS. All rights reserved.