メインコンテンツにジャンプ
プラグインに戻る
@capgo/capacitor-firebase-performance
チュートリアル
@capgo/capacitor-firebase-performance

Firebase Performance

Capacitor プラグイン - Firebase Performance の監視

ガイド

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__:

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製品ワークフロー向けのネイティブビルド。