Most visited

Recently visited

Added in API level 23

ContactsContract.Contacts.AggregationSuggestions.Builder

public static final class ContactsContract.Contacts.AggregationSuggestions.Builder
extends Object

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


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

Summary

Public constructors

ContactsContract.Contacts.AggregationSuggestions.Builder()

Public methods

ContactsContract.Contacts.AggregationSuggestions.Builder addNameParameter(String name)

添加要在搜索聚合建议时使用的名称。

Uri build()

组合所有已设置的选项并返回一个新的 Uri对象以获取聚合建议。

ContactsContract.Contacts.AggregationSuggestions.Builder setContactId(long contactId)

可选的现有联系人ID。

ContactsContract.Contacts.AggregationSuggestions.Builder setLimit(int limit)

设置应返回的建议聚合的最大数量。

Inherited methods

From class java.lang.Object

Public constructors

ContactsContract.Contacts.AggregationSuggestions.Builder

Added in API level 23
ContactsContract.Contacts.AggregationSuggestions.Builder ()

Public methods

addNameParameter

Added in API level 23
ContactsContract.Contacts.AggregationSuggestions.Builder addNameParameter (String name)

添加要在搜索聚合建议时使用的名称。

Parameters
name String: name to find aggregation suggestions for
Returns
ContactsContract.Contacts.AggregationSuggestions.Builder This Builder object to allow for chaining of calls to builder methods

build

Added in API level 23
Uri build ()

结合所有已设置的选项并返回一个新的 Uri对象以获取聚合建议。

Returns
Uri

setContactId

Added in API level 23
ContactsContract.Contacts.AggregationSuggestions.Builder setContactId (long contactId)

可选的现有联系人ID。 如果未提供,则搜索将完全基于addNameParameter(String)提供的值。

Parameters
contactId long: contact to find aggregation suggestions for
Returns
ContactsContract.Contacts.AggregationSuggestions.Builder This Builder object to allow for chaining of calls to builder methods

setLimit

Added in API level 23
ContactsContract.Contacts.AggregationSuggestions.Builder setLimit (int limit)

设置应返回的建议聚合的最大数量。

Parameters
limit int: The maximum number of suggested aggregations
Returns
ContactsContract.Contacts.AggregationSuggestions.Builder This Builder object to allow for chaining of calls to builder methods

Hooray!