Android APIs
public static final class

ContactsContract.Contacts.AggregationSuggestions.Builder

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

Class Overview

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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ContactsContract.Contacts.AggregationSuggestions.Builder ()

Added in API level 23

Public Methods

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

Added in API level 23

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

Parameters
name name to find aggregation suggestions for
Returns
  • This Builder object to allow for chaining of calls to builder methods

public Uri build ()

Added in API level 23

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

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

Added in API level 23

Optional existing contact ID. If it is not provided, the search will be based exclusively on the values supplied with addNameParameter(String).

Parameters
contactId contact to find aggregation suggestions for
Returns
  • This Builder object to allow for chaining of calls to builder methods

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

Added in API level 23

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

Parameters
limit The maximum number of suggested aggregations
Returns
  • This Builder object to allow for chaining of calls to builder methods