Added in API level 23

Builder


class Builder
kotlin.Any
   ↳ android.provider.ContactsContract.Contacts.AggregationSuggestions.Builder

A convenience builder for aggregation suggestion content URIs.

Summary

Public constructors

Public methods
ContactsContract.Contacts.AggregationSuggestions.Builder!

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

Uri!

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

ContactsContract.Contacts.AggregationSuggestions.Builder!
setContactId(contactId: Long)

Optional existing contact ID.

ContactsContract.Contacts.AggregationSuggestions.Builder!
setLimit(limit: Int)

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

Public constructors

Builder

Builder()

Public methods

addNameParameter

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

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

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

build

Added in API level 23
fun build(): Uri!

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

setContactId

Added in API level 23
fun setContactId(contactId: Long): ContactsContract.Contacts.AggregationSuggestions.Builder!

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

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

setLimit

Added in API level 23
fun setLimit(limit: Int): ContactsContract.Contacts.AggregationSuggestions.Builder!

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

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