ContactsContract.Settings.GetDefaultAccount(ContentResolver) メソッド

定義

新しい連絡先の既定のアカウントとして設定されているアカウントを取得します。これは、連絡先管理アプリで新しい連絡先を作成するときに最初に選択する必要があります。

[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

パラメーター

resolver
ContentResolver

クエリを実行する ContentResolver。

戻り値

新しい連絡先の既定のアカウント、または NULL アカウントに設定されていない場合は null。

属性

注釈

の Java ドキュメント android.provider.ContactsContract.Settings.getDefaultAccount(android.content.ContentResolver)

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象