ContactsContract.Settings.ResetAccountAttributes 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.
Resets the attributes for a given account to their system-evaluated defaults.
[Android.Runtime.Register("resetAccountAttributes", "(Landroid/content/ContentResolver;Landroid/accounts/Account;Ljava/lang/String;)V", "", ApiSince=37)]
public static void ResetAccountAttributes(Android.Content.ContentResolver resolver, Android.Accounts.Account? account, string? dataSet);
[<Android.Runtime.Register("resetAccountAttributes", "(Landroid/content/ContentResolver;Landroid/accounts/Account;Ljava/lang/String;)V", "", ApiSince=37)>]
static member ResetAccountAttributes : Android.Content.ContentResolver * Android.Accounts.Account * string -> unit
Parameters
- resolver
- ContentResolver
The ContentResolver to use for the update. This value cannot be null.
- account
- Account
- dataSet
- String
The data set within the account, which may be null.
- Attributes
Remarks
Resets the attributes for a given account to their system-evaluated defaults.
This operation removes any explicit overrides set via setAccountAttributes(ContentResolver, Account, String, long) and causes the system to immediately re-evaluate the account's attributes based on its type and other characteristics Security
This method requires that the calling application be the authenticator for the account's type, as defined in AccountManager. Requires Manifest.permission.WRITE_CONTACTS
Android reference for android.provider.ContactsContract.Settings.resetAccountAttributes.
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.