Skip to content

Most visited

Recently visited

navigation

ContactsContract.Contacts.AggregationSuggestions.Builder

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

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


A convenience builder for aggregation suggestion content URIs.

Summary

Public constructors

ContactsContract.Contacts.AggregationSuggestions.Builder()

Public methods

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

Add a name to be used when searching for aggregation suggestions.

Uri build()

Combine all of the options that have been set and return a new Uri object for fetching aggregation suggestions.

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

Optional existing contact ID.

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

Sets the Maximum number of suggested aggregations that should be returned.

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)

Add a name to be used when searching for aggregation suggestions.

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 ()

Combine all of the options that have been set and return a new Uri object for fetching aggregation suggestions.

Returns
Uri

setContactId

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

Optional existing contact ID. If it is not provided, the search will be based exclusively on the values supplied with 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)

Sets the Maximum number of suggested aggregations that should be returned.

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

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)