public class AccountSwitcherActivity
extends AppCompatActivity
Modifier and Type | Field and Description |
---|---|
protected UserAccountManager |
userAccMgr |
Constructor and Description |
---|
AccountSwitcherActivity() |
Modifier and Type | Method and Description |
---|---|
protected void |
accountSelected(UserAccount account)
Performs the account switch operation.
|
protected void |
finishActivity()
Finishes this activity.
|
protected java.util.List<UserAccount> |
getAccounts()
Returns the list of user accounts to display.
|
void |
onCreate(Bundle savedInstance) |
void |
onResume() |
void |
switchToExistingAccount(UserAccount account)
This method is triggered when a user is selected from the list.
|
void |
switchToNewAccount()
This method is triggered when the 'Add new account' button is clicked.
|
protected UserAccountManager userAccMgr
public void onCreate(Bundle savedInstance)
public void onResume()
public void switchToExistingAccount(UserAccount account)
account
- User account that was selected.public void switchToNewAccount()
protected void finishActivity()
protected void accountSelected(UserAccount account)
account
- Account to switch to. Pass in 'null' to kick off a new user login flow.protected java.util.List<UserAccount> getAccounts()