Support setting ContactsContract.DataColumns.IS_READ_ONLY
when inserting any NewDataEntity
(e.g. name, email, phone, etc)
#306
Labels
enhancement
New feature or request
Problem
As discussed in #301, there is currently no way to specify the value of
ContactsContract.DataColumns.IS_READ_ONLY
when inserting data rows using the insert APIs provided in this library.Solution
Add
isReadOnly
property toNewDataEntity
interface and incorporate it when inserting new data rows.Fields.DataIsReadOnly
, which should be added toFields.All
list but should NOT be included in the final projection array passed to any query APIs!Fields.DataIsReadOnly
can be used in WHERE clauses of query and delete APIsNewRawContact
that sets the read-only property of all data in it.about-api-entities.md
)gh-page
branchNewCustomDataEntity
implementations now require additional propertyisReadOnly
#311The text was updated successfully, but these errors were encountered: