DataRowBuilder

abstract class DataRowBuilder(val mimeType: String, val dataRowUri: Uri, val rawContactId: Long?, val contact: Contact, val readOnly: Boolean)

Builder for a data row to insert into the Android contact provider.

Parameters

mimeType

the type of data in this row, see ContactsContract.CommonDataKinds

dataRowUri

data row URI, including callerIsSyncAdapter=… if required

rawContactId

not null: raw contact ID to assign this data row to; null: data row will be assigned to back reference with index 0 (= result ID of the first operation in batch, which must be the insert operation to insert the raw contact)

contact

which contact this data row belongs to

readOnly

whether the data row is read-only (write protected). When the address book is read-only, all contacts inside are too, and so the contact's data rows should be as well.

Inheritors

Constructors

Link copied to clipboard
constructor(mimeType: String, dataRowUri: Uri, rawContactId: Long?, contact: Contact, readOnly: Boolean)

Types

Link copied to clipboard
interface Factory<T : DataRowBuilder>

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard