ICurrentAccountResult Interface
public interface ICurrentAccountResult
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean |
didAccountChange()
Indicates whether the current account has changed since last checked. If changed you can access the prior and current acocunts to perform necessary clean up within the UX. |
IAccount |
getCurrentAccount()
Returns the current account signed into the app or in the case of shared device mode. Signed into the device |
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. Signed into the device |
Method Details
didAccountChange
public boolean didAccountChange()
Indicates whether the current account has changed since last checked. If changed you can access the prior and current acocunts to perform necessary clean up within the UX.
getCurrentAccount
public IAccount getCurrentAccount()
Returns the current account signed into the app or in the case of shared device mode. Signed into the device
Returns:
getPriorAccount
public 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. Signed into the device
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for