ガイド
Firebase Performanceのチュートリアル
capgo/capacitor-firebase-performanceの使用
CapacitorのFirebase Performanceモニタリング用プラグイン
インストール
bun add @capgo/capacitor-firebase-performance
bunx cap sync
このプラグインが公開するもの
startTrace- トレースを開始します。stopTrace- トレースを停止します。incrementMetric- 指定されたトレースの選択されたメトリックに、指定された値を原子的にインクリメントします。incrementBy値。setEnabled- パフォーマンスモニタリングを有効または無効にします。アプリの次の起動時に適用されます。
例の使用方法
startTrace
トレースを開始します。
import { FirebasePerformance } from '@capgo/capacitor-firebase-performance';
await FirebasePerformance.startTrace({} as StartTraceOptions);
stopTrace
トレースを停止します。
import { FirebasePerformance } from '@capgo/capacitor-firebase-performance';
await FirebasePerformance.stopTrace({} as StopTraceOptions);
incrementMetric
指定されたトレースで選択されたメトリックの名前を持つメトリックを、値で原子的にインクリメントします。 incrementBy パフォーマンスモニタリングを有効または無効にします。アプリの次の起動時に適用されます。
import { FirebasePerformance } from '@capgo/capacitor-firebase-performance';
await FirebasePerformance.incrementMetric({} as IncrementMetricOptions);
setEnabled
フルリファレンス
import { FirebasePerformance } from '@capgo/capacitor-firebase-performance';
await FirebasePerformance.setEnabled({} as SetEnabledOptions);
__CAPGO_KEEP_0__:
- https://GitHub.com/Cap-go/__CAPGO_KEEP_1__-firebase/tree/main/packages/performance https://github.com/Cap-go/capacitor-firebase/tree/main/packages/performance
- __CAPGO_KEEP_0__:
Capgoから続けて@capgo/capacitor-firebase-performanceを使用
Capgoを使用している場合 Using @capgo/capacitor-firebase-performance __CAPGO_KEEP_0__ Plugin Directoryの製品ワークフロー Capgo Plugin DirectoryのCapgo Plugins by __CAPGO_KEEP_1__ Capgo Plugins by __CAPGO_KEEP_1__の実装詳細 Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, Ionic Enterprise Plugin Alternativesの製品ワークフロー Ionic Enterprise Plugin Alternatives __CAPGO_KEEP_0__-firebase-performance __CAPGO_KEEP_0__-firebase-performance Capgoネイティブビルド Capgo製品ワークフロー向けのネイティブビルド。