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

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

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public constructors

Builder

public Builder ()

Public methods

addNameParameter

Added in API level 23
public 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
public 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
public 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
public 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