Passer au contenu

@capgo/capacitor-contacts

Capacitor Contacts Plugin interface for managing device contacts.

Capacitor Contacts Plugin interface for managing device contacts.

  • countContacts - Count the total number of contacts on the device.
  • createContact - Create a new contact programmatically.
  • createGroup - Create a new contact group.
  • deleteContactById - Delete a contact by ID.
MethodDescription
countContactsCount the total number of contacts on the device.
createContactCreate a new contact programmatically.
createGroupCreate a new contact group.
deleteContactByIdDelete a contact by ID.
deleteGroupByIdDelete a group by ID.
displayContactByIdDisplay a contact using the native contact viewer.
displayCreateContactDisplay the native create contact UI.
displayUpdateContactByIdDisplay the native update contact UI for a specific contact.
getAccountsGet all accounts available on the device.
getContactByIdGet a specific contact by ID.
getContactsGet all contacts from the device.
getGroupByIdGet a specific group by ID.
getGroupsGet all contact groups.
isAvailableCheck if contacts are available on the device.
isSupportedCheck if the plugin is supported on the current platform.
openSettingsOpen the device’s contacts settings.
pickContactPick a single contact using the native contact picker.
pickContactsPick one or more contacts using the native contact picker.
updateContactByIdUpdate an existing contact by ID.
checkPermissionsCheck the current permission status for contacts.
requestPermissionsRequest permissions to access contacts.
getPluginVersionGet the native Capacitor plugin version.

This reference is synced from src/definitions.ts in capacitor-contacts.