ContactsContract.Settings.GetDefaultAccount(ContentResolver) 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.
Get the account that is set as the default account for new contacts, which should be initially selected when creating a new contact on contact management apps.
[Android.Runtime.Register("getDefaultAccount", "(Landroid/content/ContentResolver;)Landroid/accounts/Account;", "", ApiSince=33)]
public static Android.Accounts.Account? GetDefaultAccount (Android.Content.ContentResolver resolver);
[<Android.Runtime.Register("getDefaultAccount", "(Landroid/content/ContentResolver;)Landroid/accounts/Account;", "", ApiSince=33)>]
static member GetDefaultAccount : Android.Content.ContentResolver -> Android.Accounts.Account
Parameters
- resolver
- ContentResolver
the ContentResolver to query.
Returns
the default account for new contacts, or null if it's not set or set to NULL account.
- Attributes
Remarks
Get the account that is set as the default account for new contacts, which should be initially selected when creating a new contact on contact management apps. If the setting has not been set by any app, it will return null. Once the setting is set to non-null Account, it can still be set to null in the future.
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.