public static final class ContactsContract.Contacts.AggregationSuggestions.Builder
extends Object
| java.lang.Object | |
| ↳ | android.provider.ContactsContract.Contacts.AggregationSuggestions.Builder |
聚合建议内容URI的便捷构建器。
Public constructors |
|
|---|---|
ContactsContract.Contacts.AggregationSuggestions.Builder() |
|
Public methods |
|
|---|---|
ContactsContract.Contacts.AggregationSuggestions.Builder |
addNameParameter(String name) 添加要在搜索聚合建议时使用的名称。 |
Uri |
build() 组合所有已设置的选项并返回一个新的 |
ContactsContract.Contacts.AggregationSuggestions.Builder |
setContactId(long contactId) 可选的现有联系人ID。 |
ContactsContract.Contacts.AggregationSuggestions.Builder |
setLimit(int limit) 设置应返回的建议聚合的最大数量。 |
Inherited methods |
|
|---|---|
java.lang.Object
|
|
ContactsContract.Contacts.AggregationSuggestions.Builder ()
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 |
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 |
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 |