DataRowBuilder

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

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.