-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[webview_flutter_wkwebview] Adds the isInspectable to WebKitWebViewController.
#3984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
d81eecd
156b4a3
e67f084
5d0f22d
128da28
d3ec324
2e6330b
3c2d892
4629c89
8d68866
fa5ef8e
f4713d8
45bdfa9
0dae615
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -197,6 +197,14 @@ - (void)evaluateJavaScriptForWebViewWithIdentifier:(nonnull NSNumber *)identifie | |
| }]; | ||
| } | ||
|
|
||
| - (void)setInspectableForWebViewWithIdentifier:(NSNumber *)identifier | ||
| inspectable:(NSNumber *)inspectable | ||
| error:(FlutterError *_Nullable *_Nonnull)error { | ||
| if (@available(macOS 13.3, iOS 16.4, tvOS 16.4, *)) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should also provide a
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| [[self webViewForIdentifier:identifier] setInspectable:inspectable.boolValue]; | ||
| } | ||
| } | ||
|
|
||
| - (void)goBackForWebViewWithIdentifier:(nonnull NSNumber *)identifier | ||
| error:(FlutterError *_Nullable __autoreleasing *_Nonnull)error { | ||
| [[self webViewForIdentifier:identifier] goBack]; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.