Added in API level 23

Builder


class Builder

A convenience builder for aggregation suggestion content URIs.

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

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Jul 18, 2024

In addition to the steps described in Caching Bitmaps , there are specific things you can do to facilitate garbage collection and bitmap reuse. The recommended strategy depends on which version(s) of Android you are targeting. The BitmapFun sample app…

Updated Jun 4, 2024

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Apr 4, 2024