Richtlinie
Tutorial zu Kontakten
Mit @capgo/capacitor-kontakte
Capacitor-Kontakt-Plugin-Interface zur Verwaltung von Gerätekontakten.
Install
bun add @capgo/capacitor-contacts
bunx cap sync
Was diese Erweiterung offenlegt
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.
Beispiel zur Verwendung
countContacts
Zähle die Gesamtzahl der Kontakte auf dem Gerät.
import { CapacitorContacts } from '@capgo/capacitor-contacts';
await CapacitorContacts.countContacts();
createContact
Erstelle einen neuen Kontakt programmatisch.
import { CapacitorContacts } from '@capgo/capacitor-contacts';
await CapacitorContacts.createContact({} as CreateContactOptions);
createGroup
Erstelle eine neue Kontaktgruppe.
import { CapacitorContacts } from '@capgo/capacitor-contacts';
await CapacitorContacts.createGroup({} as CreateGroupOptions);
deleteContactById
Lösche einen Kontakt durch ID.
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/
Weitermachen von Using @capgo/capacitor-kontakte
Wenn Sie Using verwenden Mit @capgo/capacitor-kontakte um das Dashboard und API-Operationen zu planen, verbinden Sie es mit @capgo/capacitor-kontakte für die Implementierungsdetails in @capgo/capacitor-kontakte Einstieg für die Implementierungsdetails in Einstieg 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.