Commit 7d88cd80 authored by Lorenzo Pichilli's avatar Lorenzo Pichilli

updated docs

parent a3e9aa3a
...@@ -1306,6 +1306,9 @@ Future main() async { ...@@ -1306,6 +1306,9 @@ Future main() async {
This class implements a singleton object (shared instance) which manages the cookies used by WebView instances. This class implements a singleton object (shared instance) which manages the cookies used by WebView instances.
On Android, it is implemented using [CookieManager](https://developer.android.com/reference/android/webkit/CookieManager).
On iOS, it is implemented using [WKHTTPCookieStore](https://developer.apple.com/documentation/webkit/wkhttpcookiestore).
**NOTE for iOS**: available from iOS 11.0+. **NOTE for iOS**: available from iOS 11.0+.
#### `CookieManager` methods #### `CookieManager` methods
......
...@@ -6,6 +6,8 @@ import 'package:flutter/services.dart'; ...@@ -6,6 +6,8 @@ import 'package:flutter/services.dart';
import 'types.dart'; import 'types.dart';
///Class that implements a singleton object (shared instance) which manages the cookies used by WebView instances. ///Class that implements a singleton object (shared instance) which manages the cookies used by WebView instances.
///On Android, it is implemented using [CookieManager](https://developer.android.com/reference/android/webkit/CookieManager).
///On iOS, it is implemented using [WKHTTPCookieStore](https://developer.apple.com/documentation/webkit/wkhttpcookiestore).
/// ///
///**NOTE for iOS**: available from iOS 11.0+. ///**NOTE for iOS**: available from iOS 11.0+.
class CookieManager { class CookieManager {
......
...@@ -7,7 +7,8 @@ import 'package:flutter/services.dart'; ...@@ -7,7 +7,8 @@ import 'package:flutter/services.dart';
///Class that implements a singleton object (shared instance) which manages the shared HTTP auth credentials cache. ///Class that implements a singleton object (shared instance) which manages the shared HTTP auth credentials cache.
///On iOS, this class uses the [URLCredentialStorage](https://developer.apple.com/documentation/foundation/urlcredentialstorage) class. ///On iOS, this class uses the [URLCredentialStorage](https://developer.apple.com/documentation/foundation/urlcredentialstorage) class.
///On Android, this class has a custom implementation using `android.database.sqlite.SQLiteDatabase` because [WebViewDatabase](https://developer.android.com/reference/android/webkit/WebViewDatabase) ///On Android, this class has a custom implementation using `android.database.sqlite.SQLiteDatabase` because
///[WebViewDatabase](https://developer.android.com/reference/android/webkit/WebViewDatabase)
///doesn't offer the same functionalities as iOS `URLCredentialStorage`. ///doesn't offer the same functionalities as iOS `URLCredentialStorage`.
class HttpAuthCredentialDatabase { class HttpAuthCredentialDatabase {
static HttpAuthCredentialDatabase _instance; static HttpAuthCredentialDatabase _instance;
......
...@@ -11,17 +11,6 @@ import 'webview.dart'; ...@@ -11,17 +11,6 @@ import 'webview.dart';
import 'types.dart'; import 'types.dart';
import 'in_app_webview_controller.dart'; import 'in_app_webview_controller.dart';
///List of forbidden names for JavaScript handlers.
const javaScriptHandlerForbiddenNames = [
"onLoadResource",
"shouldInterceptAjaxRequest",
"onAjaxReadyStateChange",
"onAjaxProgress",
"shouldInterceptFetchRequest",
"onPrint",
"androidKeyboardWorkaroundFocusoutEvent"
];
///Flutter Widget for adding an **inline native WebView** integrated in the flutter widget tree. ///Flutter Widget for adding an **inline native WebView** integrated in the flutter widget tree.
class InAppWebView extends StatefulWidget implements WebView { class InAppWebView extends StatefulWidget implements WebView {
/// `gestureRecognizers` specifies which gestures should be consumed by the web view. /// `gestureRecognizers` specifies which gestures should be consumed by the web view.
......
This diff is collapsed.
This diff is collapsed.
...@@ -6,6 +6,8 @@ import 'package:flutter/services.dart'; ...@@ -6,6 +6,8 @@ import 'package:flutter/services.dart';
import 'types.dart'; import 'types.dart';
///Class that implements a singleton object (shared instance) which manages the web storage used by WebView instances. ///Class that implements a singleton object (shared instance) which manages the web storage used by WebView instances.
///On Android, it is implemented using [WebStorage](https://developer.android.com/reference/android/webkit/WebStorage.html).
///On iOS, it is implemented using [WKWebsiteDataStore.default()](https://developer.apple.com/documentation/webkit/wkwebsitedatastore).
/// ///
///**NOTE for iOS**: available from iOS 9.0+. ///**NOTE for iOS**: available from iOS 9.0+.
class WebStorageManager { class WebStorageManager {
......
...@@ -2,6 +2,8 @@ import 'package:flutter_inappwebview/src/context_menu.dart'; ...@@ -2,6 +2,8 @@ import 'package:flutter_inappwebview/src/context_menu.dart';
import 'types.dart'; import 'types.dart';
import 'in_app_webview_controller.dart'; import 'in_app_webview_controller.dart';
import 'webview_options.dart';
import 'headless_in_app_webview.dart';
///Abstract class that represents a WebView. Used by [WebView] and [HeadlessInAppWebView]. ///Abstract class that represents a WebView. Used by [WebView] and [HeadlessInAppWebView].
abstract class WebView { abstract class WebView {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment