setTblInspectable method

Future<void> setTblInspectable(
  1. bool inspectable
)

Enables/disables Safari Web Inspector debugging (iOS 16.4+) if this platform controller is backed by WKWebView. No-op on other platforms (e.g. Android).

Implementation

Future<void> setTblInspectable(bool inspectable) async {
  if (this is! WebKitWebViewController) {
    return;
  }
  try {
    await (this as WebKitWebViewController).setInspectable(inspectable);
  } on PlatformException catch (e) {
    TBLLogger.logException('TBLWebKitInspectable | setTblInspectable | Platform channel error: $e');
  } catch (e) {
    TBLLogger.logException('TBLWebKitInspectable | setTblInspectable | Unexpected error: $e');
  }
}