Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

angeloraso/capacitor-plugin-contacts

Repository files navigation

capacitor-plugin-contacts

Capacitor plugin for contacts

Install

npm install capacitor-plugin-contacts
npx cap sync

API

checkPermissions()

checkPermissions() => Promise<PermissionStatus>

Returns: Promise<PermissionStatus>


getPermissions()

getPermissions() => Promise<PermissionStatus>

Returns: Promise<PermissionStatus>


requestPermissions()

requestPermissions() => Promise<PermissionStatus>

Returns: Promise<PermissionStatus>


getContacts()

getContacts() => Promise<{ contacts: Contact[]; }>

Returns: Promise<{ contacts: Contact[]; }>


createContact(...)

createContact(data: { name?: string; number: string; }) => Promise<void>
Param Type
data { name?: string; number: string; }

addToExistingContact(...)

addToExistingContact(data: { name?: string; number: string; }) => Promise<void>
Param Type
data { name?: string; number: string; }

deleteContact(...)

deleteContact(data: { contactId: string; }) => Promise<void>
Param Type
data { contactId: string; }

getGroups()

getGroups() => Promise<{ groups: Group[]; }>

Returns: Promise<{ groups: Group[]; }>


getContactGroups()

getContactGroups() => Promise<{ [key: string]: Group[]; }>

Returns: Promise<{ [key: string]: Group[]; }>


Interfaces

PermissionStatus

Prop Type
granted boolean

Contact

Prop Type
contactId string
displayName string
phoneNumbers PhoneNumber[]
emails EmailAddress[]
photoThumbnail string
organizationName string
organizationRole string
birthday string

PhoneNumber

Prop Type
label string
number string

EmailAddress

Prop Type
label string
address string

Group

Prop Type
groupId string
accountType string
accountName string
title string

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published