@capgo/capacitor-webview-guardian
Capacitor plugin to Detect when the WebView was killed in the background and relaunch it on foreground.
Overview
Section titled “Overview”Capacitor plugin to Detect when the WebView was killed in the background and relaunch it on foreground.
Core Capabilities
Section titled “Core Capabilities”startMonitoring- WebView の前景イベントを観察し、自動的に WebView の健康状態を確認します。stopMonitoring- 自動的な前景モニタリングを停止します。getState- 最新のモニタリング状態を取得します。checkNow- WebView の健康状態を即座にプローブします。
公開 API
セクション「公開 API」| メソッド | 説明 |
|---|---|
startMonitoring | フォアグラウンド イベントの監視を開始し、自動的に WebView の健康状態を確認します。 |
stopMonitoring | 自動フォアグラウンド監視を停止します。 |
getState | 最新の監視状態を取得します。 |
checkNow | WebView の健康プローブを即座に強制します。 |
addListener | 現在の動作のソース定義を参照してください。 |
真実の源
セクション「真実の源」この参照は同期されています src/definitions.ts in capacitor-.