capacitor-plugin-contacts
Capacitor plugin for contacts
npm install capacitor-plugin-contacts
npx cap sync
checkPermissions ( ) = > Promise < PermissionStatus >
Returns: Promise<PermissionStatus >
getPermissions ( ) = > Promise < PermissionStatus >
Returns: Promise<PermissionStatus >
requestPermissions ( ) = > Promise < PermissionStatus >
Returns: Promise<PermissionStatus >
getContacts ( ) = > Promise < { contacts : Contact [ ] ; } >
Returns: Promise<{ contacts: Contact[]; }>
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 ( data : { contactId : string ; } ) = > Promise < void >
Param
Type
data
{ contactId: string; }
getGroups ( ) = > Promise < { groups : Group [ ] ; } >
Returns: Promise<{ groups: Group[]; }>
getContactGroups ( ) = > Promise < { [ key : string ] : Group [ ] ; } >
Returns: Promise<{ [key: string]: Group[]; }>
Prop
Type
granted
boolean
Prop
Type
contactId
string
displayName
string
phoneNumbers
PhoneNumber[]
emails
EmailAddress[]
photoThumbnail
string
organizationName
string
organizationRole
string
birthday
string
Prop
Type
label
string
number
string
Prop
Type
label
string
address
string
Prop
Type
groupId
string
accountType
string
accountName
string
title
string