Mit @capgo/capacitor-kontakte
Capacitor Kontakte-Plugin-Schnittstelle für die Verwaltung von Gerätekontakten
Installieren
bun add @capgo/capacitor-contacts
bunx cap sync
Was dieses Plugin bereitstellt
countContacts- Zähle die Gesamtzahl der Kontakte auf dem Gerät.createContact- Erstelle einen neuen Kontakt programmatisch.createGroup- Erstelle eine neue Kontaktgruppe.deleteContactById- Lösche einen Kontakt durch ID.
Beispielverwendung
countContacts
Zähle die Gesamtzahl der Kontakte auf dem Gerät.
import { CapacitorContacts } from '@capgo/capacitor-contacts';
await CapacitorContacts.countContacts();
createContact
Ein neues Kontakt programmatisch erstellen.
import { CapacitorContacts } from '@capgo/capacitor-contacts';
await CapacitorContacts.createContact({} as CreateContactOptions);
createGroup
Ein neues Kontaktgruppe erstellen.
import { CapacitorContacts } from '@capgo/capacitor-contacts';
await CapacitorContacts.createGroup({} as CreateGroupOptions);
deleteContactById
Ein Kontakt durch ID löschen.
import { CapacitorContacts } from '@capgo/capacitor-contacts';
await CapacitorContacts.deleteContactById({} as DeleteContactByIdOptions);
Vollständige Referenz
- GitHub: https://github.com/Cap-go/capacitor-kontakte/
- Dokumentation: /docs/plugins/kontakte/
Fortsetzen Sie von Using @capgo/capacitor-kontakte
Wenn Sie Using verwenden Using @capgo/capacitor-kontakte um einen Dashboard und API-Plan zu erstellen, verbinden Sie es mit @capgo/capacitor-kontakte Für die Implementierungsdetails in @capgo/capacitor-kontakte, Anleitung zum Starten Für die Implementierungsdetails in Anleitung zum Starten, API Übersicht Für die Implementierungsdetails in API Übersicht, Einführung Für die Implementierungsdetails in Einführung und API Schlüssel Für die Implementierungsdetails in API Schlüssel.