WorkAccountApi.AddAccountResult

  • WorkAccountApi.AddAccountResult is an interface that implements Result and is now deprecated.

  • It is recommended to use WorkAccountClient via WorkAccount.getClient(Activity) instead of this interface.

  • This interface was previously used for the result of WorkAccountApi.addWorkAccount(GoogleApiClient, String).

  • The getAccount() method returns the added Account object, or a non-null fake account if adding failed.

public static interface WorkAccountApi.AddAccountResult implements Result

This interface is deprecated.
Use WorkAccountClient via WorkAccount.getClient(Activity) instead.

Interface for result of WorkAccountApi.addWorkAccount(GoogleApiClient, String).

Public Method Summary

abstract Account
getAccount()
Returns a Account that has been added.

Inherited Method Summary

Public Methods

public abstract Account getAccount ()

Returns a Account that has been added. If adding the account has failed it will return a non-null fake account.