Zum Hauptinhalt springen
Zurück zu Plugins
@capgo/capacitor-kontakte
Tutorial
@capgo/capacitor-kontakte

Kontakte

Zugriff und Verwaltung von Gerätekontakten mit Leserecht und Schreibrecht

Richtlinie

Tutorial zu Kontakten

Mit @capgo/capacitor-kontakte verwenden

Capacitor-Kontakte-Plugin-Schnittstelle zur Verwaltung von Gerätekontakten

Installieren

bun add @capgo/capacitor-contacts
bunx cap sync

Was dieses Plugin offenlegt

  • countContacts - Die Gesamtzahl der Kontakte auf dem Gerät zählen.
  • createContact - Ein neuer Kontakt programmatisch erstellen.
  • createGroup - Eine neue Kontaktgruppe erstellen.
  • deleteContactById - Ein Kontakt durch ID löschen.

Beispielanwendung

countContacts

Zähle die Gesamtzahl der Kontakt 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

Fahre fort von Using @capgo/capacitor-kontakte

Wenn Sie Using verwenden Verwenden Sie @capgo/capacitor-kontakte Um das Dashboard und die 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