AccountManager.NotifyAccountAuthenticated(Account) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Notifies the system that the account has just been authenticated.
[Android.Runtime.Register("notifyAccountAuthenticated", "(Landroid/accounts/Account;)Z", "GetNotifyAccountAuthenticated_Landroid_accounts_Account_Handler", ApiSince=23)]
[Android.Runtime.RequiresPermission("android.permission.AUTHENTICATE_ACCOUNTS")]
public virtual bool NotifyAccountAuthenticated (Android.Accounts.Account? account);
[<Android.Runtime.Register("notifyAccountAuthenticated", "(Landroid/accounts/Account;)Z", "GetNotifyAccountAuthenticated_Landroid_accounts_Account_Handler", ApiSince=23)>]
[<Android.Runtime.RequiresPermission("android.permission.AUTHENTICATE_ACCOUNTS")>]
abstract member NotifyAccountAuthenticated : Android.Accounts.Account -> bool
override this.NotifyAccountAuthenticated : Android.Accounts.Account -> bool
Parameters
- account
- Account
The Account
to be updated.
Returns
boolean true
if the authentication of the account has been successfully
acknowledged. Otherwise false
.
- Attributes
Remarks
Notifies the system that the account has just been authenticated. This information may be used by other applications to verify the account. This should be called only when the user has entered correct credentials for the account.
It is not safe to call this method from the main thread. As such, call it from another thread.
This method requires the caller to have a signature match with the authenticator that owns the specified account.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.