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

Kontakte

Zugriff und Verwaltung von Gerätekontakten mit Leserechten und Schreibrechten

An __CAPGO_KEEP_0__ ansehen

Richtlinie

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 neuer Kontakt programmatisch erstellen.

import { CapacitorContacts } from '@capgo/capacitor-contacts';

await CapacitorContacts.createContact({} as CreateContactOptions);

createGroup

Ein neues Kontaktgruppen 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

Weiterhin von @capgo/capacitor-kontakte

Wenn Sie sich entscheiden Mit @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, 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.