You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10
Original file line number
Diff line number
Diff line change
@@ -194,6 +194,16 @@ If you'd like to read/write the contact's notes, call the `iosEnableNotesUsage(t
194
194
*`requestPermission()`: Promise<string> - request permission to access Contacts _ios only_
195
195
*`writePhotoToPath()` - writes the contact photo to a given path _android only_
196
196
197
+
### ios group specific functions
198
+
*`getGroups()`: Promise - returns an array of all groups. Each group contains `{ identifier: string; name: string;}`
199
+
*`getGroup: (identifier: string)`: Promise - returns the group matching the provided group identifier.
200
+
*`deleteGroup(identifier: string)`: Promise - deletes a group by group identifier.
201
+
*`updateGroup(identifier: string, groupData: Pick<Group, 'name'>`: Promise - updates an existing group's details. You can only change the group name.
202
+
*`addGroup(group: Pick<Group, 'name'>)`: Promise - adds a new group. Group name should be provided.
203
+
*`contactsInGroup(identifier: string)`: Promise - retrieves all contacts within a specified group.
204
+
*`addContactsToGroup(groupIdentifier: string, contactIdentifiers: string[])`: Promise - adds contacts to a group. Only contacts with id that has `:ABperson` as suffix can be added.
205
+
*`removeContactsFromGroup(groupIdentifier: string, contactIdentifiers: string[])`: Promise - removes specified contacts from a group.
0 commit comments