public class CurrentAccountResult extends java.lang.Object implements ICurrentAccountResult
| Constructor and Description |
|---|
CurrentAccountResult(IAccount current,
IAccount prior,
boolean changed) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
didAccountChange()
Indicates whether the current account has changed since last checked.
|
IAccount |
getCurrentAccount()
Returns the current account signed into the app or in the case of shared device mode.
|
IAccount |
getPriorAccount()
If the current signed in account changed as a result of being removed from the device, returns
the prior account signed into the app or in the case of shared device mode.
|
public IAccount getCurrentAccount()
ICurrentAccountResultgetCurrentAccount in interface ICurrentAccountResultpublic IAccount getPriorAccount()
ICurrentAccountResultgetPriorAccount in interface ICurrentAccountResultpublic boolean didAccountChange()
ICurrentAccountResultdidAccountChange in interface ICurrentAccountResult