Builder
class Builder
kotlin.Any | |
↳ | 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(name: String!) 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 |
ContactsContract.Contacts.AggregationSuggestions.Builder! |
setContactId(contactId: Long) Optional existing contact ID. |
ContactsContract.Contacts.AggregationSuggestions.Builder! |
Sets the Maximum number of suggested aggregations that should be returned. |
Public constructors
Builder
Builder()
Public methods
addNameParameter
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
fun build(): Uri!
Combine all of the options that have been set and return a new Uri
object for fetching aggregation suggestions.
setContactId
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
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 |