Skip to content

@capgo/capacitor-webview-guardian

Capacitor plugin to Detect when the WebView was killed in the background and relaunch it on foreground.

Capacitor plugin to Detect when the WebView was killed in the background and relaunch it on foreground.

  • startMonitoring - WebView の前景イベントを観察し、自動的に WebView の健康状態を確認します。
  • stopMonitoring - 自動的な前景モニタリングを停止します。
  • getState - 最新のモニタリング状態を取得します。
  • checkNow - WebView の健康状態を即座にプローブします。
メソッド説明
startMonitoringフォアグラウンド イベントの監視を開始し、自動的に WebView の健康状態を確認します。
stopMonitoring自動フォアグラウンド監視を停止します。
getState最新の監視状態を取得します。
checkNowWebView の健康プローブを即座に強制します。
addListener現在の動作のソース定義を参照してください。

この参照は同期されています src/definitions.ts in capacitor-.