Ansehen auf __CAPGO_KEEP_0__
Anleitung
Mit @capgo/capacitor-appinsights
Ein Wrapper um den https://github.com/apptopia/appinsights SDK.
Installieren
bun add @capgo/capacitor-appinsights
bunx cap sync
Was diese Plugin-Exposures
init- Initialisieren Sie die AppInsights-SDK.setUserId- Setzen oder aktualisieren Sie die Benutzer-ID nach der Initialisierung.getState- Holen Sie sich den aktuellen Zustand der SDK.
Beispielhafte Verwendung
init
Initialisieren Sie die AppInsights SDK.
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.init({} as {
partnerId: string; // Provided by our business unit
partnerKey: string; // Provided by our business unit
});
setUserId
Setzen oder aktualisieren Sie die Benutzer-ID nach der Initialisierung.
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.setUserId({} as { userId: string });
getState
Ermitteln Sie den aktuellen Zustand der SDK.
import { CapacitorAppInsights } from '@capgo/capacitor-appinsights';
await CapacitorAppInsights.getState();
Vollständige Referenz
- GitHub: https://github.com/Cap-go/capacitor-appinsights/
- Dokumentation: /docs/plugins/appinsights/
Fortsetzen Sie mit der Verwendung von @capgo/capacitor-appinsights
Wenn Sie die Verwendung von Verwendung von @capgo/capacitor-appinsights um native Plugin-Arbeit zu planen, verbinden Sie es mit @capgo/capacitor-appinsights für die Implementierungsdetails in @capgo/capacitor-AppInsights Einstieg für die Implementierungsdetails in Einstieg Capgo-Plugin-Verzeichnis für den Produktworkflow in Capgo-Plugin-Verzeichnis Capacitor-Plugins von Capgo für die Implementierungsdetails in Capacitor-Plugins von Capgo, und Plugins hinzufügen oder aktualisieren für die Implementierungsdetails in Plugins hinzufügen oder aktualisieren.