Most visited

Recently visited

Added in API level 5

ContactsContract.Contacts.AggregationSuggestions

public static final class ContactsContract.Contacts.AggregationSuggestions
extends Object implements BaseColumns, ContactsContract.ContactsColumns, ContactsContract.ContactOptionsColumns, ContactsContract.ContactStatusColumns

java.lang.Object
   ↳ android.provider.ContactsContract.Contacts.AggregationSuggestions


包含所有聚合建议(其他联系人)的单个联系人聚合的只读子目录。 根据与此联系人匹配的近似数据计算聚合建议。

注意:这个查询可能很贵! 如果您需要批量使用它,请确保在查询长时间运行时用户体验可以接受。

用法示例:

 Uri uri = Contacts.CONTENT_URI.buildUpon()
          .appendEncodedPath(String.valueOf(contactId))
          .appendPath(Contacts.AggregationSuggestions.CONTENT_DIRECTORY)
          .appendQueryParameter("limit", "3")
          .build()
 Cursor cursor = getContentResolver().query(suggestionsUri,
          new String[] {Contacts.DISPLAY_NAME, Contacts._ID, Contacts.LOOKUP_KEY},
          null, null, null);
 

该目录可以与 CONTENT_URICONTENT_LOOKUP_URI

Summary

Nested classes

class ContactsContract.Contacts.AggregationSuggestions.Builder

聚合建议内容URI的便捷构建器。

Constants

String CONTENT_DIRECTORY

该子表的目录分支。

Inherited constants

From interface android.provider.BaseColumns
From interface android.provider.ContactsContract.ContactsColumns
From interface android.provider.ContactsContract.ContactOptionsColumns
From interface android.provider.ContactsContract.ContactStatusColumns

Inherited methods

From class java.lang.Object

Constants

CONTENT_DIRECTORY

Added in API level 5
String CONTENT_DIRECTORY

该子表的目录分支。 该URI后面跟着一个可选的类型到过滤器,类似于CONTENT_FILTER_URI

常数值:“建议”

Hooray!