code format
This commit is contained in:
parent
a3c20be1e7
commit
3b2add4199
|
@ -21,9 +21,7 @@ void customActionButton() {
|
||||||
id: 1,
|
id: 1,
|
||||||
description: 'Action Button description',
|
description: 'Action Button description',
|
||||||
icon: actionButtonIcon.buffer.asUint8List(),
|
icon: actionButtonIcon.buffer.asUint8List(),
|
||||||
action: (url, title) {
|
action: (url, title) {}));
|
||||||
|
|
||||||
}));
|
|
||||||
expect(chromeSafariBrowser.isOpened(), false);
|
expect(chromeSafariBrowser.isOpened(), false);
|
||||||
|
|
||||||
await chromeSafariBrowser.open(url: TEST_URL_1);
|
await chromeSafariBrowser.open(url: TEST_URL_1);
|
||||||
|
|
|
@ -17,11 +17,7 @@ void customMenuItem() {
|
||||||
test('add custom menu item', () async {
|
test('add custom menu item', () async {
|
||||||
var chromeSafariBrowser = MyChromeSafariBrowser();
|
var chromeSafariBrowser = MyChromeSafariBrowser();
|
||||||
chromeSafariBrowser.addMenuItem(ChromeSafariBrowserMenuItem(
|
chromeSafariBrowser.addMenuItem(ChromeSafariBrowserMenuItem(
|
||||||
id: 2,
|
id: 2, label: 'Custom item menu 1', action: (url, title) {}));
|
||||||
label: 'Custom item menu 1',
|
|
||||||
action: (url, title) {
|
|
||||||
|
|
||||||
}));
|
|
||||||
expect(chromeSafariBrowser.isOpened(), false);
|
expect(chromeSafariBrowser.isOpened(), false);
|
||||||
|
|
||||||
await chromeSafariBrowser.open(url: TEST_URL_1);
|
await chromeSafariBrowser.open(url: TEST_URL_1);
|
||||||
|
|
|
@ -3,16 +3,23 @@ final TEST_CROSS_PLATFORM_URL_1 = Uri.parse('https://flutter.dev/');
|
||||||
final TEST_CROSS_PLATFORM_URL_2 = Uri.parse('https://www.bing.com/');
|
final TEST_CROSS_PLATFORM_URL_2 = Uri.parse('https://www.bing.com/');
|
||||||
final TEST_URL_1 = Uri.parse('https://github.com/flutter');
|
final TEST_URL_1 = Uri.parse('https://github.com/flutter');
|
||||||
final TEST_URL_2 = Uri.parse('https://www.google.com/');
|
final TEST_URL_2 = Uri.parse('https://www.google.com/');
|
||||||
final TEST_URL_3 = Uri.parse('https://github.com/pichillilorenzo/flutter_inappwebview');
|
final TEST_URL_3 =
|
||||||
|
Uri.parse('https://github.com/pichillilorenzo/flutter_inappwebview');
|
||||||
final TEST_URL_4 = Uri.parse('https://www.youtube.com/');
|
final TEST_URL_4 = Uri.parse('https://www.youtube.com/');
|
||||||
final TEST_URL_EXAMPLE = Uri.parse('https://www.example.com/');
|
final TEST_URL_EXAMPLE = Uri.parse('https://www.example.com/');
|
||||||
final TEST_URL_HTTP_EXAMPLE = Uri.parse('http://www.example.com/');
|
final TEST_URL_HTTP_EXAMPLE = Uri.parse('http://www.example.com/');
|
||||||
final TEST_URL_404 = Uri.parse('https://google.com/404');
|
final TEST_URL_404 = Uri.parse('https://google.com/404');
|
||||||
final TEST_WEB_PLATFORM_BASE_URL = Uri.parse(Uri.base.toString().replaceFirst("/#/", "/"));
|
final TEST_WEB_PLATFORM_BASE_URL =
|
||||||
final TEST_WEB_PLATFORM_URL_1 = Uri.parse(TEST_WEB_PLATFORM_BASE_URL.toString() + 'page.html');
|
Uri.parse(Uri.base.toString().replaceFirst("/#/", "/"));
|
||||||
final TEST_WEB_PLATFORM_URL_2 = Uri.parse(TEST_WEB_PLATFORM_BASE_URL.toString() + 'page-2.html');
|
final TEST_WEB_PLATFORM_URL_1 =
|
||||||
final TEST_WEB_PLATFORM_URL_3 = Uri.parse(TEST_WEB_PLATFORM_BASE_URL.toString() + 'heavy-page.html');
|
Uri.parse(TEST_WEB_PLATFORM_BASE_URL.toString() + 'page.html');
|
||||||
|
final TEST_WEB_PLATFORM_URL_2 =
|
||||||
|
Uri.parse(TEST_WEB_PLATFORM_BASE_URL.toString() + 'page-2.html');
|
||||||
|
final TEST_WEB_PLATFORM_URL_3 =
|
||||||
|
Uri.parse(TEST_WEB_PLATFORM_BASE_URL.toString() + 'heavy-page.html');
|
||||||
final TEST_NOT_A_WEBSITE_URL = Uri.parse('https://www.notawebsite..com/');
|
final TEST_NOT_A_WEBSITE_URL = Uri.parse('https://www.notawebsite..com/');
|
||||||
final TEST_CHROME_SAFE_BROWSING_MALWARE = Uri.parse('chrome://safe-browsing/match?type=malware');
|
final TEST_CHROME_SAFE_BROWSING_MALWARE =
|
||||||
|
Uri.parse('chrome://safe-browsing/match?type=malware');
|
||||||
final TEST_PERMISSION_SITE = Uri.parse('https://permission.site/');
|
final TEST_PERMISSION_SITE = Uri.parse('https://permission.site/');
|
||||||
final TEST_SERVICE_WORKER_URL = Uri.parse('https://mdn.github.io/dom-examples/service-worker/simple-service-worker/');
|
final TEST_SERVICE_WORKER_URL = Uri.parse(
|
||||||
|
'https://mdn.github.io/dom-examples/service-worker/simple-service-worker/');
|
||||||
|
|
|
@ -27,9 +27,7 @@ void findInteractions() {
|
||||||
initialFile: "test_assets/in_app_webview_initial_file_test.html",
|
initialFile: "test_assets/in_app_webview_initial_file_test.html",
|
||||||
findInteractionController: findInteractionController,
|
findInteractionController: findInteractionController,
|
||||||
initialSettings: InAppWebViewSettings(
|
initialSettings: InAppWebViewSettings(
|
||||||
clearCache: true,
|
clearCache: true, isFindInteractionEnabled: true),
|
||||||
isFindInteractionEnabled: true
|
|
||||||
),
|
|
||||||
onWebViewCreated: (controller) {
|
onWebViewCreated: (controller) {
|
||||||
controllerCompleter.complete(controller);
|
controllerCompleter.complete(controller);
|
||||||
},
|
},
|
||||||
|
@ -46,17 +44,23 @@ void findInteractions() {
|
||||||
await Future.delayed(Duration(seconds: 1));
|
await Future.delayed(Duration(seconds: 1));
|
||||||
|
|
||||||
const firstSearchText = "InAppWebViewInitialFileTest";
|
const firstSearchText = "InAppWebViewInitialFileTest";
|
||||||
await expectLater(findInteractionController.findAllAsync(find: firstSearchText), completes);
|
await expectLater(
|
||||||
if ([TargetPlatform.iOS, TargetPlatform.macOS].contains(defaultTargetPlatform)) {
|
findInteractionController.findAllAsync(find: firstSearchText),
|
||||||
|
completes);
|
||||||
|
if ([TargetPlatform.iOS, TargetPlatform.macOS]
|
||||||
|
.contains(defaultTargetPlatform)) {
|
||||||
expect(await findInteractionController.getSearchText(), firstSearchText);
|
expect(await findInteractionController.getSearchText(), firstSearchText);
|
||||||
final session = await findInteractionController.getActiveFindSession();
|
final session = await findInteractionController.getActiveFindSession();
|
||||||
expect(session!.resultCount, 2);
|
expect(session!.resultCount, 2);
|
||||||
}
|
}
|
||||||
await expectLater(findInteractionController.findNext(forward: true), completes);
|
await expectLater(
|
||||||
await expectLater(findInteractionController.findNext(forward: false), completes);
|
findInteractionController.findNext(forward: true), completes);
|
||||||
|
await expectLater(
|
||||||
|
findInteractionController.findNext(forward: false), completes);
|
||||||
await expectLater(findInteractionController.clearMatches(), completes);
|
await expectLater(findInteractionController.clearMatches(), completes);
|
||||||
|
|
||||||
if ([TargetPlatform.iOS, TargetPlatform.macOS].contains(defaultTargetPlatform)) {
|
if ([TargetPlatform.iOS, TargetPlatform.macOS]
|
||||||
|
.contains(defaultTargetPlatform)) {
|
||||||
const secondSearchText = "text";
|
const secondSearchText = "text";
|
||||||
await expectLater(
|
await expectLater(
|
||||||
findInteractionController.setSearchText(secondSearchText), completes);
|
findInteractionController.setSearchText(secondSearchText), completes);
|
||||||
|
@ -64,7 +68,8 @@ void findInteractions() {
|
||||||
findInteractionController.presentFindNavigator(), completes);
|
findInteractionController.presentFindNavigator(), completes);
|
||||||
expect(await findInteractionController.getSearchText(), secondSearchText);
|
expect(await findInteractionController.getSearchText(), secondSearchText);
|
||||||
expect(await findInteractionController.isFindNavigatorVisible(), true);
|
expect(await findInteractionController.isFindNavigatorVisible(), true);
|
||||||
await expectLater(findInteractionController.updateResultCount(), completes);
|
await expectLater(
|
||||||
|
findInteractionController.updateResultCount(), completes);
|
||||||
await expectLater(
|
await expectLater(
|
||||||
findInteractionController.dismissFindNavigator(), completes);
|
findInteractionController.dismissFindNavigator(), completes);
|
||||||
expect(await findInteractionController.isFindNavigatorVisible(), false);
|
expect(await findInteractionController.isFindNavigatorVisible(), false);
|
||||||
|
@ -91,9 +96,7 @@ void findInteractions() {
|
||||||
key: GlobalKey(),
|
key: GlobalKey(),
|
||||||
initialFile: "test_assets/in_app_webview_initial_file_test.html",
|
initialFile: "test_assets/in_app_webview_initial_file_test.html",
|
||||||
initialSettings: InAppWebViewSettings(
|
initialSettings: InAppWebViewSettings(
|
||||||
clearCache: true,
|
clearCache: true, isFindInteractionEnabled: false),
|
||||||
isFindInteractionEnabled: false
|
|
||||||
),
|
|
||||||
findInteractionController: findInteractionController,
|
findInteractionController: findInteractionController,
|
||||||
onWebViewCreated: (controller) {
|
onWebViewCreated: (controller) {
|
||||||
controllerCompleter.complete(controller);
|
controllerCompleter.complete(controller);
|
||||||
|
|
|
@ -7,8 +7,9 @@ import 'package:flutter_test/flutter_test.dart';
|
||||||
import '../constants.dart';
|
import '../constants.dart';
|
||||||
|
|
||||||
void runAndDispose() {
|
void runAndDispose() {
|
||||||
final shouldSkip = kIsWeb ? false :
|
final shouldSkip = kIsWeb
|
||||||
![
|
? false
|
||||||
|
: ![
|
||||||
TargetPlatform.android,
|
TargetPlatform.android,
|
||||||
TargetPlatform.iOS,
|
TargetPlatform.iOS,
|
||||||
TargetPlatform.macOS,
|
TargetPlatform.macOS,
|
||||||
|
@ -19,8 +20,7 @@ void runAndDispose() {
|
||||||
final Completer<void> pageLoaded = Completer<void>();
|
final Completer<void> pageLoaded = Completer<void>();
|
||||||
|
|
||||||
var headlessWebView = new HeadlessInAppWebView(
|
var headlessWebView = new HeadlessInAppWebView(
|
||||||
initialUrlRequest:
|
initialUrlRequest: URLRequest(url: TEST_CROSS_PLATFORM_URL_1),
|
||||||
URLRequest(url: TEST_CROSS_PLATFORM_URL_1),
|
|
||||||
onWebViewCreated: (controller) {
|
onWebViewCreated: (controller) {
|
||||||
controllerCompleter.complete(controller);
|
controllerCompleter.complete(controller);
|
||||||
},
|
},
|
||||||
|
@ -32,8 +32,7 @@ void runAndDispose() {
|
||||||
await headlessWebView.run();
|
await headlessWebView.run();
|
||||||
expect(headlessWebView.isRunning(), true);
|
expect(headlessWebView.isRunning(), true);
|
||||||
|
|
||||||
final InAppWebViewController controller =
|
final InAppWebViewController controller = await controllerCompleter.future;
|
||||||
await controllerCompleter.future;
|
|
||||||
await pageLoaded.future;
|
await pageLoaded.future;
|
||||||
|
|
||||||
final String? url = (await controller.getUrl())?.toString();
|
final String? url = (await controller.getUrl())?.toString();
|
||||||
|
|
|
@ -20,8 +20,7 @@ void takeScreenshot() {
|
||||||
final Completer<void> pageLoaded = Completer<void>();
|
final Completer<void> pageLoaded = Completer<void>();
|
||||||
|
|
||||||
var headlessWebView = new HeadlessInAppWebView(
|
var headlessWebView = new HeadlessInAppWebView(
|
||||||
initialUrlRequest:
|
initialUrlRequest: URLRequest(url: TEST_URL_1),
|
||||||
URLRequest(url: TEST_URL_1),
|
|
||||||
onWebViewCreated: (controller) {
|
onWebViewCreated: (controller) {
|
||||||
controllerCompleter.complete(controller);
|
controllerCompleter.complete(controller);
|
||||||
},
|
},
|
||||||
|
@ -32,8 +31,7 @@ void takeScreenshot() {
|
||||||
await headlessWebView.run();
|
await headlessWebView.run();
|
||||||
expect(headlessWebView.isRunning(), true);
|
expect(headlessWebView.isRunning(), true);
|
||||||
|
|
||||||
final InAppWebViewController controller =
|
final InAppWebViewController controller = await controllerCompleter.future;
|
||||||
await controllerCompleter.future;
|
|
||||||
await pageLoaded.future;
|
await pageLoaded.future;
|
||||||
|
|
||||||
final String? url = (await controller.getUrl())?.toString();
|
final String? url = (await controller.getUrl())?.toString();
|
||||||
|
|
|
@ -8,8 +8,9 @@ import 'package:flutter_test/flutter_test.dart';
|
||||||
import 'package:path_provider/path_provider.dart';
|
import 'package:path_provider/path_provider.dart';
|
||||||
|
|
||||||
void loadFileUrl() {
|
void loadFileUrl() {
|
||||||
final shouldSkip = kIsWeb ? true :
|
final shouldSkip = kIsWeb
|
||||||
![
|
? true
|
||||||
|
: ![
|
||||||
TargetPlatform.iOS,
|
TargetPlatform.iOS,
|
||||||
TargetPlatform.macOS,
|
TargetPlatform.macOS,
|
||||||
].contains(defaultTargetPlatform);
|
].contains(defaultTargetPlatform);
|
||||||
|
|
|
@ -9,8 +9,9 @@ import 'package:flutter_test/flutter_test.dart';
|
||||||
import '../constants.dart';
|
import '../constants.dart';
|
||||||
|
|
||||||
void loadUrl() {
|
void loadUrl() {
|
||||||
final shouldSkip1 = kIsWeb ? false :
|
final shouldSkip1 = kIsWeb
|
||||||
![
|
? false
|
||||||
|
: ![
|
||||||
TargetPlatform.android,
|
TargetPlatform.android,
|
||||||
TargetPlatform.iOS,
|
TargetPlatform.iOS,
|
||||||
TargetPlatform.macOS,
|
TargetPlatform.macOS,
|
||||||
|
@ -28,23 +29,23 @@ void loadUrl() {
|
||||||
textDirection: TextDirection.ltr,
|
textDirection: TextDirection.ltr,
|
||||||
child: InAppWebView(
|
child: InAppWebView(
|
||||||
key: GlobalKey(),
|
key: GlobalKey(),
|
||||||
initialUrlRequest:
|
initialUrlRequest: URLRequest(url: initialUrl),
|
||||||
URLRequest(url: initialUrl),
|
|
||||||
onWebViewCreated: (controller) {
|
onWebViewCreated: (controller) {
|
||||||
controllerCompleter.complete(controller);
|
controllerCompleter.complete(controller);
|
||||||
},
|
},
|
||||||
onLoadStop: (controller, url) {
|
onLoadStop: (controller, url) {
|
||||||
if (url.toString() == initialUrl.toString() && !firstUrlLoad.isCompleted) {
|
if (url.toString() == initialUrl.toString() &&
|
||||||
|
!firstUrlLoad.isCompleted) {
|
||||||
firstUrlLoad.complete(url.toString());
|
firstUrlLoad.complete(url.toString());
|
||||||
} else if (url.toString() == TEST_CROSS_PLATFORM_URL_1.toString() && !loadedUrl.isCompleted) {
|
} else if (url.toString() == TEST_CROSS_PLATFORM_URL_1.toString() &&
|
||||||
|
!loadedUrl.isCompleted) {
|
||||||
loadedUrl.complete(url.toString());
|
loadedUrl.complete(url.toString());
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
final InAppWebViewController controller =
|
final InAppWebViewController controller = await controllerCompleter.future;
|
||||||
await controllerCompleter.future;
|
|
||||||
expect(await firstUrlLoad.future, initialUrl.toString());
|
expect(await firstUrlLoad.future, initialUrl.toString());
|
||||||
|
|
||||||
await controller.loadUrl(
|
await controller.loadUrl(
|
||||||
|
@ -52,8 +53,9 @@ void loadUrl() {
|
||||||
expect(await loadedUrl.future, TEST_CROSS_PLATFORM_URL_1.toString());
|
expect(await loadedUrl.future, TEST_CROSS_PLATFORM_URL_1.toString());
|
||||||
}, skip: shouldSkip1);
|
}, skip: shouldSkip1);
|
||||||
|
|
||||||
final shouldSkip2 = kIsWeb ? true :
|
final shouldSkip2 = kIsWeb
|
||||||
![
|
? true
|
||||||
|
: ![
|
||||||
TargetPlatform.iOS,
|
TargetPlatform.iOS,
|
||||||
TargetPlatform.macOS,
|
TargetPlatform.macOS,
|
||||||
].contains(defaultTargetPlatform);
|
].contains(defaultTargetPlatform);
|
||||||
|
@ -68,31 +70,34 @@ void loadUrl() {
|
||||||
textDirection: TextDirection.ltr,
|
textDirection: TextDirection.ltr,
|
||||||
child: InAppWebView(
|
child: InAppWebView(
|
||||||
key: GlobalKey(),
|
key: GlobalKey(),
|
||||||
initialUrlRequest:
|
initialUrlRequest: URLRequest(url: initialUrl),
|
||||||
URLRequest(url: initialUrl),
|
|
||||||
onWebViewCreated: (controller) {
|
onWebViewCreated: (controller) {
|
||||||
controllerCompleter.complete(controller);
|
controllerCompleter.complete(controller);
|
||||||
},
|
},
|
||||||
onLoadStop: (controller, url) {
|
onLoadStop: (controller, url) {
|
||||||
if (url.toString() == initialUrl.toString() && !firstUrlLoad.isCompleted) {
|
if (url.toString() == initialUrl.toString() &&
|
||||||
|
!firstUrlLoad.isCompleted) {
|
||||||
firstUrlLoad.complete(url.toString());
|
firstUrlLoad.complete(url.toString());
|
||||||
} else if (url.toString() == TEST_CROSS_PLATFORM_URL_1.toString() && !loadedUrl.isCompleted) {
|
} else if (url.toString() == TEST_CROSS_PLATFORM_URL_1.toString() &&
|
||||||
|
!loadedUrl.isCompleted) {
|
||||||
loadedUrl.complete(url.toString());
|
loadedUrl.complete(url.toString());
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
final InAppWebViewController controller =
|
final InAppWebViewController controller = await controllerCompleter.future;
|
||||||
await controllerCompleter.future;
|
|
||||||
expect(await firstUrlLoad.future, initialUrl.toString());
|
expect(await firstUrlLoad.future, initialUrl.toString());
|
||||||
|
|
||||||
final htmlCode = "<h1>Hello</h1>";
|
final htmlCode = "<h1>Hello</h1>";
|
||||||
await controller.loadSimulatedRequest(
|
await controller.loadSimulatedRequest(
|
||||||
urlRequest: URLRequest(url: TEST_CROSS_PLATFORM_URL_1),
|
urlRequest: URLRequest(url: TEST_CROSS_PLATFORM_URL_1),
|
||||||
data: Uint8List.fromList(utf8.encode(htmlCode))
|
data: Uint8List.fromList(utf8.encode(htmlCode)));
|
||||||
);
|
|
||||||
expect(await loadedUrl.future, TEST_CROSS_PLATFORM_URL_1.toString());
|
expect(await loadedUrl.future, TEST_CROSS_PLATFORM_URL_1.toString());
|
||||||
expect((await controller.evaluateJavascript(source: "document.body.innerHTML")).toString().trim(), htmlCode);
|
expect(
|
||||||
|
(await controller.evaluateJavascript(source: "document.body.innerHTML"))
|
||||||
|
.toString()
|
||||||
|
.trim(),
|
||||||
|
htmlCode);
|
||||||
}, skip: shouldSkip2);
|
}, skip: shouldSkip2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,7 @@ void onJsBeforeUnload() {
|
||||||
);
|
);
|
||||||
|
|
||||||
final String url = await onJsBeforeUnloadCompleter.future;
|
final String url = await onJsBeforeUnloadCompleter.future;
|
||||||
expect(url, endsWith("test_assets/in_app_webview_on_js_before_unload.html"));
|
expect(
|
||||||
|
url, endsWith("test_assets/in_app_webview_on_js_before_unload.html"));
|
||||||
}, skip: shouldSkip);
|
}, skip: shouldSkip);
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,8 @@ void onReceivedError() {
|
||||||
group('onReceivedError', () {
|
group('onReceivedError', () {
|
||||||
testWidgets('invalid url', (WidgetTester tester) async {
|
testWidgets('invalid url', (WidgetTester tester) async {
|
||||||
final Completer<String> errorUrlCompleter = Completer<String>();
|
final Completer<String> errorUrlCompleter = Completer<String>();
|
||||||
final Completer<WebResourceErrorType> errorCodeCompleter = Completer<WebResourceErrorType>();
|
final Completer<WebResourceErrorType> errorCodeCompleter =
|
||||||
|
Completer<WebResourceErrorType>();
|
||||||
|
|
||||||
await tester.pumpWidget(
|
await tester.pumpWidget(
|
||||||
Directionality(
|
Directionality(
|
||||||
|
|
|
@ -152,7 +152,8 @@ void webHistory() {
|
||||||
var url = await pageLoads.stream.first;
|
var url = await pageLoads.stream.first;
|
||||||
expect(url, TEST_WEB_PLATFORM_URL_1.toString());
|
expect(url, TEST_WEB_PLATFORM_URL_1.toString());
|
||||||
|
|
||||||
await controller.evaluateJavascript(source: "document.getElementById('link-page-2').click();");
|
await controller.evaluateJavascript(
|
||||||
|
source: "document.getElementById('link-page-2').click();");
|
||||||
url = await pageLoads.stream.first;
|
url = await pageLoads.stream.first;
|
||||||
expect(url, TEST_WEB_PLATFORM_URL_2.toString());
|
expect(url, TEST_WEB_PLATFORM_URL_2.toString());
|
||||||
|
|
||||||
|
|
|
@ -19,15 +19,15 @@ void clearAndSetProxyOverride() {
|
||||||
final Completer controllerCompleter = Completer<InAppWebViewController>();
|
final Completer controllerCompleter = Completer<InAppWebViewController>();
|
||||||
final Completer<String> pageLoaded = Completer<String>();
|
final Completer<String> pageLoaded = Completer<String>();
|
||||||
|
|
||||||
var proxyAvailable = await WebViewFeature.isFeatureSupported(
|
var proxyAvailable =
|
||||||
WebViewFeature.PROXY_OVERRIDE);
|
await WebViewFeature.isFeatureSupported(WebViewFeature.PROXY_OVERRIDE);
|
||||||
|
|
||||||
if (proxyAvailable) {
|
if (proxyAvailable) {
|
||||||
ProxyController proxyController =
|
ProxyController proxyController = ProxyController.instance();
|
||||||
ProxyController.instance();
|
|
||||||
|
|
||||||
await proxyController.clearProxyOverride();
|
await proxyController.clearProxyOverride();
|
||||||
await proxyController.setProxyOverride(settings: ProxySettings(
|
await proxyController.setProxyOverride(
|
||||||
|
settings: ProxySettings(
|
||||||
proxyRules: [ProxyRule(url: "${environment["NODE_SERVER_IP"]}:8083")],
|
proxyRules: [ProxyRule(url: "${environment["NODE_SERVER_IP"]}:8083")],
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -53,8 +53,17 @@ void clearAndSetProxyOverride() {
|
||||||
final String url = await pageLoaded.future;
|
final String url = await pageLoaded.future;
|
||||||
expect(url, TEST_URL_HTTP_EXAMPLE.toString());
|
expect(url, TEST_URL_HTTP_EXAMPLE.toString());
|
||||||
|
|
||||||
expect(await controller.evaluateJavascript(source: "document.getElementById('url').innerHTML;"), TEST_URL_HTTP_EXAMPLE.toString());
|
expect(
|
||||||
expect(await controller.evaluateJavascript(source: "document.getElementById('method').innerHTML;"), "GET");
|
await controller.evaluateJavascript(
|
||||||
expect(await controller.evaluateJavascript(source: "document.getElementById('headers').innerHTML;"), isNotNull);
|
source: "document.getElementById('url').innerHTML;"),
|
||||||
|
TEST_URL_HTTP_EXAMPLE.toString());
|
||||||
|
expect(
|
||||||
|
await controller.evaluateJavascript(
|
||||||
|
source: "document.getElementById('method').innerHTML;"),
|
||||||
|
"GET");
|
||||||
|
expect(
|
||||||
|
await controller.evaluateJavascript(
|
||||||
|
source: "document.getElementById('headers').innerHTML;"),
|
||||||
|
isNotNull);
|
||||||
}, skip: shouldSkip);
|
}, skip: shouldSkip);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,8 @@ import 'package:flutter_inappwebview/flutter_inappwebview.dart';
|
||||||
import 'package:integration_test/integration_test.dart';
|
import 'package:integration_test/integration_test.dart';
|
||||||
|
|
||||||
import 'in_app_webview/main.dart' as in_app_webview_tests;
|
import 'in_app_webview/main.dart' as in_app_webview_tests;
|
||||||
import 'find_interaction_controller/main.dart' as find_interaction_controller_tests;
|
import 'find_interaction_controller/main.dart'
|
||||||
|
as find_interaction_controller_tests;
|
||||||
import 'service_worker_controller/main.dart' as service_worker_controller_tests;
|
import 'service_worker_controller/main.dart' as service_worker_controller_tests;
|
||||||
import 'proxy_controller/main.dart' as proxy_controller_tests;
|
import 'proxy_controller/main.dart' as proxy_controller_tests;
|
||||||
import 'headless_in_app_webview/main.dart' as headless_in_app_webview_tests;
|
import 'headless_in_app_webview/main.dart' as headless_in_app_webview_tests;
|
||||||
|
|
|
@ -184,7 +184,8 @@ class ServiceWorkerController {
|
||||||
///This method should only be called if [WebViewFeature.isFeatureSupported] returns `true` for [WebViewFeature.REQUESTED_WITH_HEADER_CONTROL].
|
///This method should only be called if [WebViewFeature.isFeatureSupported] returns `true` for [WebViewFeature.REQUESTED_WITH_HEADER_CONTROL].
|
||||||
///
|
///
|
||||||
///**Official Android API**: https://developer.android.com/reference/androidx/webkit/ServiceWorkerWebSettingsCompat#setRequestedWithHeaderMode(int)
|
///**Official Android API**: https://developer.android.com/reference/androidx/webkit/ServiceWorkerWebSettingsCompat#setRequestedWithHeaderMode(int)
|
||||||
static Future<void> setRequestedWithHeaderMode(RequestedWithHeaderMode mode) async {
|
static Future<void> setRequestedWithHeaderMode(
|
||||||
|
RequestedWithHeaderMode mode) async {
|
||||||
Map<String, dynamic> args = <String, dynamic>{};
|
Map<String, dynamic> args = <String, dynamic>{};
|
||||||
args.putIfAbsent("mode", () => mode.toNativeValue());
|
args.putIfAbsent("mode", () => mode.toNativeValue());
|
||||||
await _channel.invokeMethod('setRequestedWithHeaderMode', args);
|
await _channel.invokeMethod('setRequestedWithHeaderMode', args);
|
||||||
|
|
|
@ -134,7 +134,8 @@ class WebViewFeature_ {
|
||||||
|
|
||||||
///This feature covers [ServiceWorkerClient.shouldInterceptRequest].
|
///This feature covers [ServiceWorkerClient.shouldInterceptRequest].
|
||||||
static const SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST =
|
static const SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST =
|
||||||
const WebViewFeature_._internal("SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST");
|
const WebViewFeature_._internal(
|
||||||
|
"SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST");
|
||||||
|
|
||||||
///
|
///
|
||||||
static const SHOULD_OVERRIDE_WITH_REDIRECTS =
|
static const SHOULD_OVERRIDE_WITH_REDIRECTS =
|
||||||
|
@ -210,7 +211,8 @@ class WebViewFeature_ {
|
||||||
|
|
||||||
///This feature covers [InAppWebViewSettings.enterpriseAuthenticationAppLinkPolicyEnabled].
|
///This feature covers [InAppWebViewSettings.enterpriseAuthenticationAppLinkPolicyEnabled].
|
||||||
static const ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY =
|
static const ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY =
|
||||||
const WebViewFeature_._internal("ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY");
|
const WebViewFeature_._internal(
|
||||||
|
"ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY");
|
||||||
|
|
||||||
///Return whether a feature is supported at run-time. On devices running Android version `Build.VERSION_CODES.LOLLIPOP` and higher,
|
///Return whether a feature is supported at run-time. On devices running Android version `Build.VERSION_CODES.LOLLIPOP` and higher,
|
||||||
///this will check whether a feature is supported, depending on the combination of the desired feature, the Android version of device,
|
///this will check whether a feature is supported, depending on the combination of the desired feature, the Android version of device,
|
||||||
|
@ -249,7 +251,8 @@ class AndroidWebViewFeature_ {
|
||||||
const AndroidWebViewFeature_._internal("DISABLED_ACTION_MODE_MENU_ITEMS");
|
const AndroidWebViewFeature_._internal("DISABLED_ACTION_MODE_MENU_ITEMS");
|
||||||
|
|
||||||
///
|
///
|
||||||
static const FORCE_DARK = const AndroidWebViewFeature_._internal("FORCE_DARK");
|
static const FORCE_DARK =
|
||||||
|
const AndroidWebViewFeature_._internal("FORCE_DARK");
|
||||||
|
|
||||||
///
|
///
|
||||||
static const FORCE_DARK_STRATEGY =
|
static const FORCE_DARK_STRATEGY =
|
||||||
|
@ -305,7 +308,8 @@ class AndroidWebViewFeature_ {
|
||||||
|
|
||||||
///
|
///
|
||||||
static const SAFE_BROWSING_PRIVACY_POLICY_URL =
|
static const SAFE_BROWSING_PRIVACY_POLICY_URL =
|
||||||
const AndroidWebViewFeature_._internal("SAFE_BROWSING_PRIVACY_POLICY_URL");
|
const AndroidWebViewFeature_._internal(
|
||||||
|
"SAFE_BROWSING_PRIVACY_POLICY_URL");
|
||||||
|
|
||||||
///
|
///
|
||||||
static const SAFE_BROWSING_RESPONSE_BACK_TO_SAFETY =
|
static const SAFE_BROWSING_RESPONSE_BACK_TO_SAFETY =
|
||||||
|
@ -400,7 +404,8 @@ class AndroidWebViewFeature_ {
|
||||||
|
|
||||||
///
|
///
|
||||||
static const WEB_RESOURCE_REQUEST_IS_REDIRECT =
|
static const WEB_RESOURCE_REQUEST_IS_REDIRECT =
|
||||||
const AndroidWebViewFeature_._internal("WEB_RESOURCE_REQUEST_IS_REDIRECT");
|
const AndroidWebViewFeature_._internal(
|
||||||
|
"WEB_RESOURCE_REQUEST_IS_REDIRECT");
|
||||||
|
|
||||||
///
|
///
|
||||||
static const WEB_VIEW_RENDERER_CLIENT_BASIC_USAGE =
|
static const WEB_VIEW_RENDERER_CLIENT_BASIC_USAGE =
|
||||||
|
@ -429,7 +434,8 @@ class AndroidWebViewFeature_ {
|
||||||
|
|
||||||
///This feature covers [InAppWebViewSettings.enterpriseAuthenticationAppLinkPolicyEnabled].
|
///This feature covers [InAppWebViewSettings.enterpriseAuthenticationAppLinkPolicyEnabled].
|
||||||
static const ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY =
|
static const ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY =
|
||||||
const AndroidWebViewFeature_._internal("ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY");
|
const AndroidWebViewFeature_._internal(
|
||||||
|
"ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY");
|
||||||
|
|
||||||
///Return whether a feature is supported at run-time. On devices running Android version `Build.VERSION_CODES.LOLLIPOP` and higher,
|
///Return whether a feature is supported at run-time. On devices running Android version `Build.VERSION_CODES.LOLLIPOP` and higher,
|
||||||
///this will check whether a feature is supported, depending on the combination of the desired feature, the Android version of device,
|
///this will check whether a feature is supported, depending on the combination of the desired feature, the Android version of device,
|
||||||
|
|
|
@ -150,7 +150,8 @@ class ContentBlockerTrigger {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
List<String> loadContextStringList = List<String>.from(map["load-context"] ?? []);
|
List<String> loadContextStringList =
|
||||||
|
List<String>.from(map["load-context"] ?? []);
|
||||||
loadContextStringList.forEach((typeValue) {
|
loadContextStringList.forEach((typeValue) {
|
||||||
var context = ContentBlockerTriggerLoadContext.fromNativeValue(typeValue);
|
var context = ContentBlockerTriggerLoadContext.fromNativeValue(typeValue);
|
||||||
if (context != null) {
|
if (context != null) {
|
||||||
|
@ -185,15 +186,17 @@ class ContentBlockerAction {
|
||||||
///It specify a string that defines a selector list. Use CSS identifiers as the individual selector values, separated by commas.
|
///It specify a string that defines a selector list. Use CSS identifiers as the individual selector values, separated by commas.
|
||||||
String? selector;
|
String? selector;
|
||||||
|
|
||||||
ContentBlockerAction(
|
ContentBlockerAction({required this.type, this.selector}) {
|
||||||
{required this.type, this.selector}) {
|
|
||||||
if (this.type == ContentBlockerActionType.CSS_DISPLAY_NONE) {
|
if (this.type == ContentBlockerActionType.CSS_DISPLAY_NONE) {
|
||||||
assert(this.selector != null);
|
assert(this.selector != null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, dynamic> toMap() {
|
Map<String, dynamic> toMap() {
|
||||||
Map<String, dynamic> map = {"type": type.toNativeValue(), "selector": selector};
|
Map<String, dynamic> map = {
|
||||||
|
"type": type.toNativeValue(),
|
||||||
|
"selector": selector
|
||||||
|
};
|
||||||
|
|
||||||
map.keys
|
map.keys
|
||||||
.where((key) =>
|
.where((key) =>
|
||||||
|
|
|
@ -161,7 +161,8 @@ class CookieManager {
|
||||||
|
|
||||||
if (isSecure != null && isSecure) cookieValue += "; Secure";
|
if (isSecure != null && isSecure) cookieValue += "; Secure";
|
||||||
|
|
||||||
if (sameSite != null) cookieValue += "; SameSite=" + sameSite.toNativeValue();
|
if (sameSite != null)
|
||||||
|
cookieValue += "; SameSite=" + sameSite.toNativeValue();
|
||||||
|
|
||||||
cookieValue += ";";
|
cookieValue += ";";
|
||||||
|
|
||||||
|
@ -243,7 +244,8 @@ class CookieManager {
|
||||||
expiresDate: cookieMap["expiresDate"],
|
expiresDate: cookieMap["expiresDate"],
|
||||||
isSessionOnly: cookieMap["isSessionOnly"],
|
isSessionOnly: cookieMap["isSessionOnly"],
|
||||||
domain: cookieMap["domain"],
|
domain: cookieMap["domain"],
|
||||||
sameSite: HTTPCookieSameSitePolicy.fromNativeValue(cookieMap["sameSite"]),
|
sameSite:
|
||||||
|
HTTPCookieSameSitePolicy.fromNativeValue(cookieMap["sameSite"]),
|
||||||
isSecure: cookieMap["isSecure"],
|
isSecure: cookieMap["isSecure"],
|
||||||
isHttpOnly: cookieMap["isHttpOnly"],
|
isHttpOnly: cookieMap["isHttpOnly"],
|
||||||
path: cookieMap["path"]));
|
path: cookieMap["path"]));
|
||||||
|
@ -364,8 +366,8 @@ class CookieManager {
|
||||||
expiresDate: cookies[i]["expiresDate"],
|
expiresDate: cookies[i]["expiresDate"],
|
||||||
isSessionOnly: cookies[i]["isSessionOnly"],
|
isSessionOnly: cookies[i]["isSessionOnly"],
|
||||||
domain: cookies[i]["domain"],
|
domain: cookies[i]["domain"],
|
||||||
sameSite:
|
sameSite: HTTPCookieSameSitePolicy.fromNativeValue(
|
||||||
HTTPCookieSameSitePolicy.fromNativeValue(cookies[i]["sameSite"]),
|
cookies[i]["sameSite"]),
|
||||||
isSecure: cookies[i]["isSecure"],
|
isSecure: cookies[i]["isSecure"],
|
||||||
isHttpOnly: cookies[i]["isHttpOnly"],
|
isHttpOnly: cookies[i]["isHttpOnly"],
|
||||||
path: cookies[i]["path"]);
|
path: cookies[i]["path"]);
|
||||||
|
@ -533,7 +535,8 @@ class CookieManager {
|
||||||
expiresDate: cookieMap["expiresDate"],
|
expiresDate: cookieMap["expiresDate"],
|
||||||
isSessionOnly: cookieMap["isSessionOnly"],
|
isSessionOnly: cookieMap["isSessionOnly"],
|
||||||
domain: cookieMap["domain"],
|
domain: cookieMap["domain"],
|
||||||
sameSite: HTTPCookieSameSitePolicy.fromNativeValue(cookieMap["sameSite"]),
|
sameSite:
|
||||||
|
HTTPCookieSameSitePolicy.fromNativeValue(cookieMap["sameSite"]),
|
||||||
isSecure: cookieMap["isSecure"],
|
isSecure: cookieMap["isSecure"],
|
||||||
isHttpOnly: cookieMap["isHttpOnly"],
|
isHttpOnly: cookieMap["isHttpOnly"],
|
||||||
path: cookieMap["path"]));
|
path: cookieMap["path"]));
|
||||||
|
@ -595,7 +598,8 @@ class IOSCookieManager {
|
||||||
expiresDate: cookieMap["expiresDate"],
|
expiresDate: cookieMap["expiresDate"],
|
||||||
isSessionOnly: cookieMap["isSessionOnly"],
|
isSessionOnly: cookieMap["isSessionOnly"],
|
||||||
domain: cookieMap["domain"],
|
domain: cookieMap["domain"],
|
||||||
sameSite: HTTPCookieSameSitePolicy.fromNativeValue(cookieMap["sameSite"]),
|
sameSite:
|
||||||
|
HTTPCookieSameSitePolicy.fromNativeValue(cookieMap["sameSite"]),
|
||||||
isSecure: cookieMap["isSecure"],
|
isSecure: cookieMap["isSecure"],
|
||||||
isHttpOnly: cookieMap["isHttpOnly"],
|
isHttpOnly: cookieMap["isHttpOnly"],
|
||||||
path: cookieMap["path"]));
|
path: cookieMap["path"]));
|
||||||
|
|
|
@ -24,10 +24,9 @@ class DebugLoggingSettings {
|
||||||
///Use [print] instead of `developer.log` to log messages.
|
///Use [print] instead of `developer.log` to log messages.
|
||||||
bool usePrint;
|
bool usePrint;
|
||||||
|
|
||||||
DebugLoggingSettings({
|
DebugLoggingSettings(
|
||||||
this.enabled = kDebugMode,
|
{this.enabled = kDebugMode,
|
||||||
this.excludeFilter = const [],
|
this.excludeFilter = const [],
|
||||||
this.maxLogMessageLength = -1,
|
this.maxLogMessageLength = -1,
|
||||||
this.usePrint = false
|
this.usePrint = false});
|
||||||
});
|
|
||||||
}
|
}
|
|
@ -103,8 +103,7 @@ class InAppBrowser {
|
||||||
|
|
||||||
_debugLog(String method, dynamic args) {
|
_debugLog(String method, dynamic args) {
|
||||||
if (InAppBrowser.debugLoggingSettings.enabled) {
|
if (InAppBrowser.debugLoggingSettings.enabled) {
|
||||||
for (var regExp
|
for (var regExp in InAppBrowser.debugLoggingSettings.excludeFilter) {
|
||||||
in InAppBrowser.debugLoggingSettings.excludeFilter) {
|
|
||||||
if (regExp.hasMatch(method)) return;
|
if (regExp.hasMatch(method)) return;
|
||||||
}
|
}
|
||||||
var maxLogMessageLength =
|
var maxLogMessageLength =
|
||||||
|
@ -773,7 +772,8 @@ class InAppBrowser {
|
||||||
///**Supported Platforms/Implementations**:
|
///**Supported Platforms/Implementations**:
|
||||||
///- Android native WebView
|
///- Android native WebView
|
||||||
///- iOS
|
///- iOS
|
||||||
Future<bool?>? onPrintRequest(Uri? url, PrintJobController? printJobController) {
|
Future<bool?>? onPrintRequest(
|
||||||
|
Uri? url, PrintJobController? printJobController) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -318,7 +318,8 @@ class AndroidInAppWebViewOptions
|
||||||
"defaultFixedFontSize": defaultFixedFontSize,
|
"defaultFixedFontSize": defaultFixedFontSize,
|
||||||
"defaultFontSize": defaultFontSize,
|
"defaultFontSize": defaultFontSize,
|
||||||
"defaultTextEncodingName": defaultTextEncodingName,
|
"defaultTextEncodingName": defaultTextEncodingName,
|
||||||
"disabledActionModeMenuItems": disabledActionModeMenuItems?.toNativeValue(),
|
"disabledActionModeMenuItems":
|
||||||
|
disabledActionModeMenuItems?.toNativeValue(),
|
||||||
"fantasyFontFamily": fantasyFontFamily,
|
"fantasyFontFamily": fantasyFontFamily,
|
||||||
"fixedFontFamily": fixedFontFamily,
|
"fixedFontFamily": fixedFontFamily,
|
||||||
"forceDark": forceDark?.toNativeValue(),
|
"forceDark": forceDark?.toNativeValue(),
|
||||||
|
@ -380,7 +381,8 @@ class AndroidInAppWebViewOptions
|
||||||
instance.defaultFontSize = map["defaultFontSize"];
|
instance.defaultFontSize = map["defaultFontSize"];
|
||||||
instance.defaultTextEncodingName = map["defaultTextEncodingName"];
|
instance.defaultTextEncodingName = map["defaultTextEncodingName"];
|
||||||
instance.disabledActionModeMenuItems =
|
instance.disabledActionModeMenuItems =
|
||||||
AndroidActionModeMenuItem.fromNativeValue(map["disabledActionModeMenuItems"]);
|
AndroidActionModeMenuItem.fromNativeValue(
|
||||||
|
map["disabledActionModeMenuItems"]);
|
||||||
instance.fantasyFontFamily = map["fantasyFontFamily"];
|
instance.fantasyFontFamily = map["fantasyFontFamily"];
|
||||||
instance.fixedFontFamily = map["fixedFontFamily"];
|
instance.fixedFontFamily = map["fixedFontFamily"];
|
||||||
instance.forceDark = AndroidForceDark.fromNativeValue(map["forceDark"]);
|
instance.forceDark = AndroidForceDark.fromNativeValue(map["forceDark"]);
|
||||||
|
|
|
@ -349,8 +349,8 @@ class IOSInAppWebViewOptions
|
||||||
map["automaticallyAdjustsScrollIndicatorInsets"];
|
map["automaticallyAdjustsScrollIndicatorInsets"];
|
||||||
instance.accessibilityIgnoresInvertColors =
|
instance.accessibilityIgnoresInvertColors =
|
||||||
map["accessibilityIgnoresInvertColors"];
|
map["accessibilityIgnoresInvertColors"];
|
||||||
instance.decelerationRate =
|
instance.decelerationRate = IOSUIScrollViewDecelerationRate.fromNativeValue(
|
||||||
IOSUIScrollViewDecelerationRate.fromNativeValue(map["decelerationRate"])!;
|
map["decelerationRate"])!;
|
||||||
instance.alwaysBounceVertical = map["alwaysBounceVertical"];
|
instance.alwaysBounceVertical = map["alwaysBounceVertical"];
|
||||||
instance.alwaysBounceHorizontal = map["alwaysBounceHorizontal"];
|
instance.alwaysBounceHorizontal = map["alwaysBounceHorizontal"];
|
||||||
instance.scrollsToTop = map["scrollsToTop"];
|
instance.scrollsToTop = map["scrollsToTop"];
|
||||||
|
|
|
@ -534,7 +534,8 @@ class InAppWebViewController {
|
||||||
|
|
||||||
if (_webview != null) {
|
if (_webview != null) {
|
||||||
if (_webview!.onFormResubmission != null)
|
if (_webview!.onFormResubmission != null)
|
||||||
return (await _webview!.onFormResubmission!(this, uri))?.toNativeValue();
|
return (await _webview!.onFormResubmission!(this, uri))
|
||||||
|
?.toNativeValue();
|
||||||
else {
|
else {
|
||||||
// ignore: deprecated_member_use_from_same_package
|
// ignore: deprecated_member_use_from_same_package
|
||||||
return (await _webview!.androidOnFormResubmission!(this, uri))
|
return (await _webview!.androidOnFormResubmission!(this, uri))
|
||||||
|
@ -802,8 +803,12 @@ class InAppWebViewController {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "onFindResultReceived":
|
case "onFindResultReceived":
|
||||||
if ((_webview != null && (_webview!.onFindResultReceived != null ||
|
if ((_webview != null &&
|
||||||
(_webview!.findInteractionController != null && _webview!.findInteractionController!.onFindResultReceived != null))) ||
|
(_webview!.onFindResultReceived != null ||
|
||||||
|
(_webview!.findInteractionController != null &&
|
||||||
|
_webview!.findInteractionController!
|
||||||
|
.onFindResultReceived !=
|
||||||
|
null))) ||
|
||||||
_inAppBrowser != null) {
|
_inAppBrowser != null) {
|
||||||
int activeMatchOrdinal = call.arguments["activeMatchOrdinal"];
|
int activeMatchOrdinal = call.arguments["activeMatchOrdinal"];
|
||||||
int numberOfMatches = call.arguments["numberOfMatches"];
|
int numberOfMatches = call.arguments["numberOfMatches"];
|
||||||
|
@ -813,19 +818,23 @@ class InAppWebViewController {
|
||||||
_webview!.findInteractionController!.onFindResultReceived !=
|
_webview!.findInteractionController!.onFindResultReceived !=
|
||||||
null)
|
null)
|
||||||
_webview!.findInteractionController!.onFindResultReceived!(
|
_webview!.findInteractionController!.onFindResultReceived!(
|
||||||
_webview!.findInteractionController!, activeMatchOrdinal,
|
_webview!.findInteractionController!,
|
||||||
numberOfMatches, isDoneCounting);
|
activeMatchOrdinal,
|
||||||
|
numberOfMatches,
|
||||||
|
isDoneCounting);
|
||||||
else
|
else
|
||||||
_webview!.onFindResultReceived!(
|
_webview!.onFindResultReceived!(
|
||||||
this, activeMatchOrdinal, numberOfMatches, isDoneCounting);
|
this, activeMatchOrdinal, numberOfMatches, isDoneCounting);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
if (_inAppBrowser!.findInteractionController != null &&
|
if (_inAppBrowser!.findInteractionController != null &&
|
||||||
_inAppBrowser!.findInteractionController!
|
_inAppBrowser!
|
||||||
.onFindResultReceived != null)
|
.findInteractionController!.onFindResultReceived !=
|
||||||
|
null)
|
||||||
_inAppBrowser!.findInteractionController!.onFindResultReceived!(
|
_inAppBrowser!.findInteractionController!.onFindResultReceived!(
|
||||||
_webview!.findInteractionController!, activeMatchOrdinal,
|
_webview!.findInteractionController!,
|
||||||
numberOfMatches, isDoneCounting);
|
activeMatchOrdinal,
|
||||||
|
numberOfMatches,
|
||||||
|
isDoneCounting);
|
||||||
else
|
else
|
||||||
_inAppBrowser!.onFindResultReceived(
|
_inAppBrowser!.onFindResultReceived(
|
||||||
activeMatchOrdinal, numberOfMatches, isDoneCounting);
|
activeMatchOrdinal, numberOfMatches, isDoneCounting);
|
||||||
|
@ -1243,9 +1252,11 @@ class InAppWebViewController {
|
||||||
AjaxRequest request = AjaxRequest.fromMap(arguments)!;
|
AjaxRequest request = AjaxRequest.fromMap(arguments)!;
|
||||||
|
|
||||||
if (_webview != null && _webview!.onAjaxReadyStateChange != null)
|
if (_webview != null && _webview!.onAjaxReadyStateChange != null)
|
||||||
return (await _webview!.onAjaxReadyStateChange!(this, request))?.toNativeValue();
|
return (await _webview!.onAjaxReadyStateChange!(this, request))
|
||||||
|
?.toNativeValue();
|
||||||
else
|
else
|
||||||
return (await _inAppBrowser!.onAjaxReadyStateChange(request))?.toNativeValue();
|
return (await _inAppBrowser!.onAjaxReadyStateChange(request))
|
||||||
|
?.toNativeValue();
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
case "onAjaxProgress":
|
case "onAjaxProgress":
|
||||||
|
@ -1255,9 +1266,11 @@ class InAppWebViewController {
|
||||||
AjaxRequest request = AjaxRequest.fromMap(arguments)!;
|
AjaxRequest request = AjaxRequest.fromMap(arguments)!;
|
||||||
|
|
||||||
if (_webview != null && _webview!.onAjaxProgress != null)
|
if (_webview != null && _webview!.onAjaxProgress != null)
|
||||||
return (await _webview!.onAjaxProgress!(this, request))?.toNativeValue();
|
return (await _webview!.onAjaxProgress!(this, request))
|
||||||
|
?.toNativeValue();
|
||||||
else
|
else
|
||||||
return (await _inAppBrowser!.onAjaxProgress(request))?.toNativeValue();
|
return (await _inAppBrowser!.onAjaxProgress(request))
|
||||||
|
?.toNativeValue();
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
case "shouldInterceptFetchRequest":
|
case "shouldInterceptFetchRequest":
|
||||||
|
@ -2293,7 +2306,8 @@ class InAppWebViewController {
|
||||||
///- Android native WebView ([Official API - PrintManager.print](https://developer.android.com/reference/android/print/PrintManager#print(java.lang.String,%20android.print.PrintDocumentAdapter,%20android.print.PrintAttributes)))
|
///- Android native WebView ([Official API - PrintManager.print](https://developer.android.com/reference/android/print/PrintManager#print(java.lang.String,%20android.print.PrintDocumentAdapter,%20android.print.PrintAttributes)))
|
||||||
///- iOS ([Official API - UIPrintInteractionController.present](https://developer.apple.com/documentation/uikit/uiprintinteractioncontroller/1618149-present))
|
///- iOS ([Official API - UIPrintInteractionController.present](https://developer.apple.com/documentation/uikit/uiprintinteractioncontroller/1618149-present))
|
||||||
///- Web ([Official API - Window.print](https://developer.mozilla.org/en-US/docs/Web/API/Window/print))
|
///- Web ([Official API - Window.print](https://developer.mozilla.org/en-US/docs/Web/API/Window/print))
|
||||||
Future<PrintJobController?> printCurrentPage({PrintJobSettings? settings}) async {
|
Future<PrintJobController?> printCurrentPage(
|
||||||
|
{PrintJobSettings? settings}) async {
|
||||||
Map<String, dynamic> args = <String, dynamic>{};
|
Map<String, dynamic> args = <String, dynamic>{};
|
||||||
args.putIfAbsent("settings", () => settings?.toMap());
|
args.putIfAbsent("settings", () => settings?.toMap());
|
||||||
String? jobId = await _channel.invokeMethod('printCurrentPage', args);
|
String? jobId = await _channel.invokeMethod('printCurrentPage', args);
|
||||||
|
@ -2838,7 +2852,8 @@ class InAppWebViewController {
|
||||||
if (defaultTargetPlatform == TargetPlatform.android) {
|
if (defaultTargetPlatform == TargetPlatform.android) {
|
||||||
assert(filePath.endsWith("." + WebArchiveFormat.MHT.toNativeValue()));
|
assert(filePath.endsWith("." + WebArchiveFormat.MHT.toNativeValue()));
|
||||||
} else if (defaultTargetPlatform == TargetPlatform.iOS) {
|
} else if (defaultTargetPlatform == TargetPlatform.iOS) {
|
||||||
assert(filePath.endsWith("." + WebArchiveFormat.WEBARCHIVE.toNativeValue()));
|
assert(filePath
|
||||||
|
.endsWith("." + WebArchiveFormat.WEBARCHIVE.toNativeValue()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3390,7 +3405,10 @@ class InAppWebViewController {
|
||||||
///
|
///
|
||||||
///**Supported Platforms/Implementations**:
|
///**Supported Platforms/Implementations**:
|
||||||
///- iOS ([Official API - WKWebView.loadSimulatedRequest(_:response:responseData:)](https://developer.apple.com/documentation/webkit/wkwebview/3763094-loadsimulatedrequest) and [Official API - WKWebView.loadSimulatedRequest(_:responseHTML:)](https://developer.apple.com/documentation/webkit/wkwebview/3763095-loadsimulatedrequest)).
|
///- iOS ([Official API - WKWebView.loadSimulatedRequest(_:response:responseData:)](https://developer.apple.com/documentation/webkit/wkwebview/3763094-loadsimulatedrequest) and [Official API - WKWebView.loadSimulatedRequest(_:responseHTML:)](https://developer.apple.com/documentation/webkit/wkwebview/3763095-loadsimulatedrequest)).
|
||||||
Future<void> loadSimulatedRequest({required URLRequest urlRequest, required Uint8List data, URLResponse? urlResponse}) async {
|
Future<void> loadSimulatedRequest(
|
||||||
|
{required URLRequest urlRequest,
|
||||||
|
required Uint8List data,
|
||||||
|
URLResponse? urlResponse}) async {
|
||||||
Map<String, dynamic> args = <String, dynamic>{};
|
Map<String, dynamic> args = <String, dynamic>{};
|
||||||
args.putIfAbsent('urlRequest', () => urlRequest.toMap());
|
args.putIfAbsent('urlRequest', () => urlRequest.toMap());
|
||||||
args.putIfAbsent('data', () => data);
|
args.putIfAbsent('data', () => data);
|
||||||
|
|
|
@ -12,7 +12,6 @@ import '../android/webview_feature.dart';
|
||||||
import '../in_app_webview/in_app_webview_controller.dart';
|
import '../in_app_webview/in_app_webview_controller.dart';
|
||||||
import '../context_menu.dart';
|
import '../context_menu.dart';
|
||||||
|
|
||||||
|
|
||||||
///This class represents all the WebView settings available.
|
///This class represents all the WebView settings available.
|
||||||
class InAppWebViewSettings {
|
class InAppWebViewSettings {
|
||||||
///Set to `true` to be able to listen at the [WebView.shouldOverrideUrlLoading] event. The default value is `false`.
|
///Set to `true` to be able to listen at the [WebView.shouldOverrideUrlLoading] event. The default value is `false`.
|
||||||
|
@ -1184,7 +1183,8 @@ class InAppWebViewSettings {
|
||||||
this.fantasyFontFamily = "fantasy",
|
this.fantasyFontFamily = "fantasy",
|
||||||
this.fixedFontFamily = "monospace",
|
this.fixedFontFamily = "monospace",
|
||||||
this.forceDark = ForceDark.OFF,
|
this.forceDark = ForceDark.OFF,
|
||||||
this.forceDarkStrategy = ForceDarkStrategy.PREFER_WEB_THEME_OVER_USER_AGENT_DARKENING,
|
this.forceDarkStrategy =
|
||||||
|
ForceDarkStrategy.PREFER_WEB_THEME_OVER_USER_AGENT_DARKENING,
|
||||||
this.geolocationEnabled = true,
|
this.geolocationEnabled = true,
|
||||||
this.layoutAlgorithm,
|
this.layoutAlgorithm,
|
||||||
this.loadWithOverviewMode = true,
|
this.loadWithOverviewMode = true,
|
||||||
|
@ -1277,11 +1277,16 @@ class InAppWebViewSettings {
|
||||||
!this.resourceCustomSchemes.contains("https"));
|
!this.resourceCustomSchemes.contains("https"));
|
||||||
assert(
|
assert(
|
||||||
allowingReadAccessTo == null || allowingReadAccessTo!.isScheme("file"));
|
allowingReadAccessTo == null || allowingReadAccessTo!.isScheme("file"));
|
||||||
assert((minimumViewportInset == null && maximumViewportInset == null) ||
|
assert(
|
||||||
minimumViewportInset != null && maximumViewportInset != null &&
|
(minimumViewportInset == null && maximumViewportInset == null) ||
|
||||||
minimumViewportInset!.isNonNegative && maximumViewportInset!.isNonNegative &&
|
minimumViewportInset != null &&
|
||||||
minimumViewportInset!.vertical <= maximumViewportInset!.vertical &&
|
maximumViewportInset != null &&
|
||||||
minimumViewportInset!.horizontal <= maximumViewportInset!.horizontal,
|
minimumViewportInset!.isNonNegative &&
|
||||||
|
maximumViewportInset!.isNonNegative &&
|
||||||
|
minimumViewportInset!.vertical <=
|
||||||
|
maximumViewportInset!.vertical &&
|
||||||
|
minimumViewportInset!.horizontal <=
|
||||||
|
maximumViewportInset!.horizontal,
|
||||||
"minimumViewportInset cannot be larger than maximumViewportInset");
|
"minimumViewportInset cannot be larger than maximumViewportInset");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1341,7 +1346,8 @@ class InAppWebViewSettings {
|
||||||
"defaultFixedFontSize": defaultFixedFontSize,
|
"defaultFixedFontSize": defaultFixedFontSize,
|
||||||
"defaultFontSize": defaultFontSize,
|
"defaultFontSize": defaultFontSize,
|
||||||
"defaultTextEncodingName": defaultTextEncodingName,
|
"defaultTextEncodingName": defaultTextEncodingName,
|
||||||
"disabledActionModeMenuItems": disabledActionModeMenuItems?.toNativeValue(),
|
"disabledActionModeMenuItems":
|
||||||
|
disabledActionModeMenuItems?.toNativeValue(),
|
||||||
"fantasyFontFamily": fantasyFontFamily,
|
"fantasyFontFamily": fantasyFontFamily,
|
||||||
"fixedFontFamily": fixedFontFamily,
|
"fixedFontFamily": fixedFontFamily,
|
||||||
"forceDark": forceDark?.toNativeValue(),
|
"forceDark": forceDark?.toNativeValue(),
|
||||||
|
@ -1381,7 +1387,8 @@ class InAppWebViewSettings {
|
||||||
"willSuppressErrorPage": willSuppressErrorPage,
|
"willSuppressErrorPage": willSuppressErrorPage,
|
||||||
"algorithmicDarkeningAllowed": algorithmicDarkeningAllowed,
|
"algorithmicDarkeningAllowed": algorithmicDarkeningAllowed,
|
||||||
"requestedWithHeaderMode": requestedWithHeaderMode?.toNativeValue(),
|
"requestedWithHeaderMode": requestedWithHeaderMode?.toNativeValue(),
|
||||||
"enterpriseAuthenticationAppLinkPolicyEnabled": enterpriseAuthenticationAppLinkPolicyEnabled,
|
"enterpriseAuthenticationAppLinkPolicyEnabled":
|
||||||
|
enterpriseAuthenticationAppLinkPolicyEnabled,
|
||||||
"disallowOverScroll": disallowOverScroll,
|
"disallowOverScroll": disallowOverScroll,
|
||||||
"enableViewportScale": enableViewportScale,
|
"enableViewportScale": enableViewportScale,
|
||||||
"suppressesIncrementalRendering": suppressesIncrementalRendering,
|
"suppressesIncrementalRendering": suppressesIncrementalRendering,
|
||||||
|
@ -1450,7 +1457,8 @@ class InAppWebViewSettings {
|
||||||
List<String> dataDetectorTypesList =
|
List<String> dataDetectorTypesList =
|
||||||
List<String>.from(map["dataDetectorTypes"] ?? []);
|
List<String>.from(map["dataDetectorTypes"] ?? []);
|
||||||
dataDetectorTypesList.forEach((dataDetectorTypeValue) {
|
dataDetectorTypesList.forEach((dataDetectorTypeValue) {
|
||||||
var dataDetectorType = DataDetectorTypes.fromNativeValue(dataDetectorTypeValue);
|
var dataDetectorType =
|
||||||
|
DataDetectorTypes.fromNativeValue(dataDetectorTypeValue);
|
||||||
if (dataDetectorType != null) {
|
if (dataDetectorType != null) {
|
||||||
dataDetectorTypes.add(dataDetectorType);
|
dataDetectorTypes.add(dataDetectorType);
|
||||||
}
|
}
|
||||||
|
@ -1523,11 +1531,13 @@ class InAppWebViewSettings {
|
||||||
settings.defaultFontSize = map["defaultFontSize"];
|
settings.defaultFontSize = map["defaultFontSize"];
|
||||||
settings.defaultTextEncodingName = map["defaultTextEncodingName"];
|
settings.defaultTextEncodingName = map["defaultTextEncodingName"];
|
||||||
settings.disabledActionModeMenuItems =
|
settings.disabledActionModeMenuItems =
|
||||||
ActionModeMenuItem.fromNativeValue(map["disabledActionModeMenuItems"]);
|
ActionModeMenuItem.fromNativeValue(
|
||||||
|
map["disabledActionModeMenuItems"]);
|
||||||
settings.fantasyFontFamily = map["fantasyFontFamily"];
|
settings.fantasyFontFamily = map["fantasyFontFamily"];
|
||||||
settings.fixedFontFamily = map["fixedFontFamily"];
|
settings.fixedFontFamily = map["fixedFontFamily"];
|
||||||
settings.forceDark = ForceDark.fromNativeValue(map["forceDark"]);
|
settings.forceDark = ForceDark.fromNativeValue(map["forceDark"]);
|
||||||
settings.forceDarkStrategy = ForceDarkStrategy.fromNativeValue(map["forceDarkStrategy"]);
|
settings.forceDarkStrategy =
|
||||||
|
ForceDarkStrategy.fromNativeValue(map["forceDarkStrategy"]);
|
||||||
settings.geolocationEnabled = map["geolocationEnabled"];
|
settings.geolocationEnabled = map["geolocationEnabled"];
|
||||||
settings.layoutAlgorithm =
|
settings.layoutAlgorithm =
|
||||||
LayoutAlgorithm.fromNativeValue(map["layoutAlgorithm"]);
|
LayoutAlgorithm.fromNativeValue(map["layoutAlgorithm"]);
|
||||||
|
@ -1549,11 +1559,14 @@ class InAppWebViewSettings {
|
||||||
settings.useHybridComposition = map["useHybridComposition"];
|
settings.useHybridComposition = map["useHybridComposition"];
|
||||||
settings.useShouldInterceptRequest = map["useShouldInterceptRequest"];
|
settings.useShouldInterceptRequest = map["useShouldInterceptRequest"];
|
||||||
settings.useOnRenderProcessGone = map["useOnRenderProcessGone"];
|
settings.useOnRenderProcessGone = map["useOnRenderProcessGone"];
|
||||||
settings.overScrollMode = OverScrollMode.fromNativeValue(map["overScrollMode"]);
|
settings.overScrollMode =
|
||||||
|
OverScrollMode.fromNativeValue(map["overScrollMode"]);
|
||||||
settings.networkAvailable = map["networkAvailable"];
|
settings.networkAvailable = map["networkAvailable"];
|
||||||
settings.scrollBarStyle = ScrollBarStyle.fromNativeValue(map["scrollBarStyle"]);
|
settings.scrollBarStyle =
|
||||||
|
ScrollBarStyle.fromNativeValue(map["scrollBarStyle"]);
|
||||||
settings.verticalScrollbarPosition =
|
settings.verticalScrollbarPosition =
|
||||||
VerticalScrollbarPosition.fromNativeValue(map["verticalScrollbarPosition"]);
|
VerticalScrollbarPosition.fromNativeValue(
|
||||||
|
map["verticalScrollbarPosition"]);
|
||||||
settings.scrollBarDefaultDelayBeforeFade =
|
settings.scrollBarDefaultDelayBeforeFade =
|
||||||
map["scrollBarDefaultDelayBeforeFade"];
|
map["scrollBarDefaultDelayBeforeFade"];
|
||||||
settings.scrollbarFadingEnabled = map["scrollbarFadingEnabled"];
|
settings.scrollbarFadingEnabled = map["scrollbarFadingEnabled"];
|
||||||
|
@ -1570,11 +1583,14 @@ class InAppWebViewSettings {
|
||||||
settings.horizontalScrollbarTrackColor =
|
settings.horizontalScrollbarTrackColor =
|
||||||
UtilColor.fromHex(map["horizontalScrollbarTrackColor"]);
|
UtilColor.fromHex(map["horizontalScrollbarTrackColor"]);
|
||||||
settings.willSuppressErrorPage = map["willSuppressErrorPage"];
|
settings.willSuppressErrorPage = map["willSuppressErrorPage"];
|
||||||
settings.algorithmicDarkeningAllowed = map["algorithmicDarkeningAllowed"];
|
settings.algorithmicDarkeningAllowed =
|
||||||
settings.requestedWithHeaderMode = RequestedWithHeaderMode.fromNativeValue(map["requestedWithHeaderMode"]);
|
map["algorithmicDarkeningAllowed"];
|
||||||
settings.enterpriseAuthenticationAppLinkPolicyEnabled = map["enterpriseAuthenticationAppLinkPolicyEnabled"];
|
settings.requestedWithHeaderMode =
|
||||||
}
|
RequestedWithHeaderMode.fromNativeValue(
|
||||||
else if (defaultTargetPlatform == TargetPlatform.iOS ||
|
map["requestedWithHeaderMode"]);
|
||||||
|
settings.enterpriseAuthenticationAppLinkPolicyEnabled =
|
||||||
|
map["enterpriseAuthenticationAppLinkPolicyEnabled"];
|
||||||
|
} else if (defaultTargetPlatform == TargetPlatform.iOS ||
|
||||||
defaultTargetPlatform == TargetPlatform.macOS) {
|
defaultTargetPlatform == TargetPlatform.macOS) {
|
||||||
settings.disallowOverScroll = map["disallowOverScroll"];
|
settings.disallowOverScroll = map["disallowOverScroll"];
|
||||||
settings.enableViewportScale = map["enableViewportScale"];
|
settings.enableViewportScale = map["enableViewportScale"];
|
||||||
|
@ -1599,8 +1615,8 @@ class InAppWebViewSettings {
|
||||||
map["automaticallyAdjustsScrollIndicatorInsets"];
|
map["automaticallyAdjustsScrollIndicatorInsets"];
|
||||||
settings.accessibilityIgnoresInvertColors =
|
settings.accessibilityIgnoresInvertColors =
|
||||||
map["accessibilityIgnoresInvertColors"];
|
map["accessibilityIgnoresInvertColors"];
|
||||||
settings.decelerationRate =
|
settings.decelerationRate = ScrollViewDecelerationRate.fromNativeValue(
|
||||||
ScrollViewDecelerationRate.fromNativeValue(map["decelerationRate"])!;
|
map["decelerationRate"])!;
|
||||||
settings.alwaysBounceVertical = map["alwaysBounceVertical"];
|
settings.alwaysBounceVertical = map["alwaysBounceVertical"];
|
||||||
settings.alwaysBounceHorizontal = map["alwaysBounceHorizontal"];
|
settings.alwaysBounceHorizontal = map["alwaysBounceHorizontal"];
|
||||||
settings.scrollsToTop = map["scrollsToTop"];
|
settings.scrollsToTop = map["scrollsToTop"];
|
||||||
|
@ -1631,8 +1647,10 @@ class InAppWebViewSettings {
|
||||||
settings.upgradeKnownHostsToHTTPS = map["upgradeKnownHostsToHTTPS"];
|
settings.upgradeKnownHostsToHTTPS = map["upgradeKnownHostsToHTTPS"];
|
||||||
settings.isElementFullscreenEnabled = map["isElementFullscreenEnabled"];
|
settings.isElementFullscreenEnabled = map["isElementFullscreenEnabled"];
|
||||||
settings.isFindInteractionEnabled = map["isFindInteractionEnabled"];
|
settings.isFindInteractionEnabled = map["isFindInteractionEnabled"];
|
||||||
settings.minimumViewportInset = MapEdgeInsets.fromMap(map["minimumViewportInset"]?.cast<String, double>());
|
settings.minimumViewportInset = MapEdgeInsets.fromMap(
|
||||||
settings.maximumViewportInset = MapEdgeInsets.fromMap(map["maximumViewportInset"]?.cast<String, double>());
|
map["minimumViewportInset"]?.cast<String, double>());
|
||||||
|
settings.maximumViewportInset = MapEdgeInsets.fromMap(
|
||||||
|
map["maximumViewportInset"]?.cast<String, double>());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return settings;
|
return settings;
|
||||||
|
|
|
@ -4,7 +4,8 @@ import '../in_app_webview/in_app_webview_controller.dart';
|
||||||
import '../types/disposable.dart';
|
import '../types/disposable.dart';
|
||||||
|
|
||||||
///A completion handler for the [PrintJobController].
|
///A completion handler for the [PrintJobController].
|
||||||
typedef PrintJobCompletionHandler = Future<void> Function(bool completed, String? error)?;
|
typedef PrintJobCompletionHandler = Future<void> Function(
|
||||||
|
bool completed, String? error)?;
|
||||||
|
|
||||||
///Class representing a print job eventually returned by [InAppWebViewController.printCurrentPage].
|
///Class representing a print job eventually returned by [InAppWebViewController.printCurrentPage].
|
||||||
class PrintJobController implements Disposable {
|
class PrintJobController implements Disposable {
|
||||||
|
@ -19,8 +20,7 @@ class PrintJobController implements Disposable {
|
||||||
///- iOS ([Official API - UIPrintInteractionController.CompletionHandler](https://developer.apple.com/documentation/uikit/uiprintinteractioncontroller/completionhandler))
|
///- iOS ([Official API - UIPrintInteractionController.CompletionHandler](https://developer.apple.com/documentation/uikit/uiprintinteractioncontroller/completionhandler))
|
||||||
PrintJobCompletionHandler onComplete;
|
PrintJobCompletionHandler onComplete;
|
||||||
|
|
||||||
PrintJobController(
|
PrintJobController({required this.id}) {
|
||||||
{required this.id}) {
|
|
||||||
this._channel = MethodChannel(
|
this._channel = MethodChannel(
|
||||||
'com.pichillilorenzo/flutter_inappwebview_printjobcontroller_$id');
|
'com.pichillilorenzo/flutter_inappwebview_printjobcontroller_$id');
|
||||||
this._channel.setMethodCallHandler((call) async {
|
this._channel.setMethodCallHandler((call) async {
|
||||||
|
@ -94,8 +94,7 @@ class PrintJobController implements Disposable {
|
||||||
Future<PrintJobInfo?> getInfo() async {
|
Future<PrintJobInfo?> getInfo() async {
|
||||||
Map<String, dynamic> args = <String, dynamic>{};
|
Map<String, dynamic> args = <String, dynamic>{};
|
||||||
Map<String, dynamic>? infoMap =
|
Map<String, dynamic>? infoMap =
|
||||||
(await _channel.invokeMethod('getInfo', args))
|
(await _channel.invokeMethod('getInfo', args))?.cast<String, dynamic>();
|
||||||
?.cast<String, dynamic>();
|
|
||||||
return PrintJobInfo.fromMap(infoMap);
|
return PrintJobInfo.fromMap(infoMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -185,17 +185,16 @@ class PrintJobSettings {
|
||||||
animated: map["animated"],
|
animated: map["animated"],
|
||||||
orientation: PrintJobOrientation.fromNativeValue(map["orientation"]),
|
orientation: PrintJobOrientation.fromNativeValue(map["orientation"]),
|
||||||
numberOfPages: map["numberOfPages"],
|
numberOfPages: map["numberOfPages"],
|
||||||
forceRenderingQuality:
|
forceRenderingQuality: PrintJobRenderingQuality.fromNativeValue(
|
||||||
PrintJobRenderingQuality.fromNativeValue(map["forceRenderingQuality"]),
|
map["forceRenderingQuality"]),
|
||||||
margins:
|
margins: MapEdgeInsets.fromMap(map["margins"]?.cast<String, dynamic>()),
|
||||||
MapEdgeInsets.fromMap(map["margins"]?.cast<String, dynamic>()),
|
|
||||||
mediaSize:
|
mediaSize:
|
||||||
PrintJobMediaSize.fromMap(map["mediaSize"]?.cast<String, dynamic>()),
|
PrintJobMediaSize.fromMap(map["mediaSize"]?.cast<String, dynamic>()),
|
||||||
colorMode: PrintJobColorMode.fromNativeValue(map["colorMode"]),
|
colorMode: PrintJobColorMode.fromNativeValue(map["colorMode"]),
|
||||||
duplexMode: PrintJobDuplexMode.fromNativeValue(map["duplexMode"]),
|
duplexMode: PrintJobDuplexMode.fromNativeValue(map["duplexMode"]),
|
||||||
outputType: PrintJobOutputType.fromNativeValue(map["outputType"]),
|
outputType: PrintJobOutputType.fromNativeValue(map["outputType"]),
|
||||||
resolution:
|
resolution: PrintJobResolution.fromMap(
|
||||||
PrintJobResolution.fromMap(map["resolution"]?.cast<String, dynamic>()),
|
map["resolution"]?.cast<String, dynamic>()),
|
||||||
showsNumberOfCopies: map["showsNumberOfCopies"],
|
showsNumberOfCopies: map["showsNumberOfCopies"],
|
||||||
showsPaperSelectionForLoadedPapers:
|
showsPaperSelectionForLoadedPapers:
|
||||||
map["showsPaperSelectionForLoadedPapers"],
|
map["showsPaperSelectionForLoadedPapers"],
|
||||||
|
|
|
@ -3,9 +3,7 @@ import 'package:flutter_inappwebview_internal_annotations/flutter_inappwebview_i
|
||||||
part 'action_mode_menu_item.g.dart';
|
part 'action_mode_menu_item.g.dart';
|
||||||
|
|
||||||
///Class used to disable the action mode menu items.
|
///Class used to disable the action mode menu items.
|
||||||
@ExchangeableEnum(
|
@ExchangeableEnum(bitwiseOrOperator: true)
|
||||||
bitwiseOrOperator: true
|
|
||||||
)
|
|
||||||
class ActionModeMenuItem_ {
|
class ActionModeMenuItem_ {
|
||||||
// ignore: unused_field
|
// ignore: unused_field
|
||||||
final int _value;
|
final int _value;
|
||||||
|
@ -30,9 +28,7 @@ class ActionModeMenuItem_ {
|
||||||
///
|
///
|
||||||
///Use [ActionModeMenuItem] instead.
|
///Use [ActionModeMenuItem] instead.
|
||||||
@Deprecated("Use ActionModeMenuItem instead")
|
@Deprecated("Use ActionModeMenuItem instead")
|
||||||
@ExchangeableEnum(
|
@ExchangeableEnum(bitwiseOrOperator: true)
|
||||||
bitwiseOrOperator: true
|
|
||||||
)
|
|
||||||
class AndroidActionModeMenuItem_ {
|
class AndroidActionModeMenuItem_ {
|
||||||
// ignore: unused_field
|
// ignore: unused_field
|
||||||
final int _value;
|
final int _value;
|
||||||
|
|
|
@ -97,5 +97,4 @@ class AjaxRequest_ {
|
||||||
this.responseHeaders,
|
this.responseHeaders,
|
||||||
this.event,
|
this.event,
|
||||||
this.action = AjaxRequestAction_.PROCEED});
|
this.action = AjaxRequestAction_.PROCEED});
|
||||||
|
|
||||||
}
|
}
|
|
@ -24,5 +24,6 @@ class AjaxRequestEvent_ {
|
||||||
///When downloading a resource using HTTP, this only represent the content itself, not headers and other overhead.
|
///When downloading a resource using HTTP, this only represent the content itself, not headers and other overhead.
|
||||||
int? total;
|
int? total;
|
||||||
|
|
||||||
AjaxRequestEvent_({this.type, this.lengthComputable, this.loaded, this.total});
|
AjaxRequestEvent_(
|
||||||
|
{this.type, this.lengthComputable, this.loaded, this.total});
|
||||||
}
|
}
|
|
@ -18,9 +18,9 @@ class ClientCertChallenge_ extends URLAuthenticationChallenge_ {
|
||||||
@SupportedPlatforms(platforms: [
|
@SupportedPlatforms(platforms: [
|
||||||
AndroidPlatform(
|
AndroidPlatform(
|
||||||
apiName: "ClientCertRequest.getPrincipals",
|
apiName: "ClientCertRequest.getPrincipals",
|
||||||
apiUrl: "https://developer.android.com/reference/android/webkit/ClientCertRequest#getPrincipals()",
|
apiUrl:
|
||||||
available: "21"
|
"https://developer.android.com/reference/android/webkit/ClientCertRequest#getPrincipals()",
|
||||||
)
|
available: "21")
|
||||||
])
|
])
|
||||||
List<String>? principals;
|
List<String>? principals;
|
||||||
|
|
||||||
|
@ -32,9 +32,9 @@ class ClientCertChallenge_ extends URLAuthenticationChallenge_ {
|
||||||
@SupportedPlatforms(platforms: [
|
@SupportedPlatforms(platforms: [
|
||||||
AndroidPlatform(
|
AndroidPlatform(
|
||||||
apiName: "ClientCertRequest.getKeyTypes",
|
apiName: "ClientCertRequest.getKeyTypes",
|
||||||
apiUrl: "https://developer.android.com/reference/android/webkit/ClientCertRequest#getKeyTypes()",
|
apiUrl:
|
||||||
available: "21"
|
"https://developer.android.com/reference/android/webkit/ClientCertRequest#getKeyTypes()",
|
||||||
)
|
available: "21")
|
||||||
])
|
])
|
||||||
List<String>? keyTypes;
|
List<String>? keyTypes;
|
||||||
|
|
||||||
|
|
|
@ -21,9 +21,7 @@ class ClientCertResponse_ {
|
||||||
String? androidKeyStoreType;
|
String? androidKeyStoreType;
|
||||||
|
|
||||||
///An Android-specific property used by Java [KeyStore](https://developer.android.com/reference/java/security/KeyStore) class to get the instance.
|
///An Android-specific property used by Java [KeyStore](https://developer.android.com/reference/java/security/KeyStore) class to get the instance.
|
||||||
@SupportedPlatforms(platforms: [
|
@SupportedPlatforms(platforms: [AndroidPlatform()])
|
||||||
AndroidPlatform()
|
|
||||||
])
|
|
||||||
String? keyStoreType;
|
String? keyStoreType;
|
||||||
|
|
||||||
///Indicate the [ClientCertResponseAction] to take in response of the client certificate challenge.
|
///Indicate the [ClientCertResponseAction] to take in response of the client certificate challenge.
|
||||||
|
|
|
@ -20,11 +20,7 @@ class CreateWindowAction_ extends NavigationAction_ {
|
||||||
bool? androidIsDialog;
|
bool? androidIsDialog;
|
||||||
|
|
||||||
///Indicates if the new window should be a dialog, rather than a full-size window.
|
///Indicates if the new window should be a dialog, rather than a full-size window.
|
||||||
@SupportedPlatforms(
|
@SupportedPlatforms(platforms: [AndroidPlatform()])
|
||||||
platforms: [
|
|
||||||
AndroidPlatform()
|
|
||||||
]
|
|
||||||
)
|
|
||||||
bool? isDialog;
|
bool? isDialog;
|
||||||
|
|
||||||
///Use [windowFeatures] instead.
|
///Use [windowFeatures] instead.
|
||||||
|
@ -32,14 +28,12 @@ class CreateWindowAction_ extends NavigationAction_ {
|
||||||
IOSWKWindowFeatures_? iosWindowFeatures;
|
IOSWKWindowFeatures_? iosWindowFeatures;
|
||||||
|
|
||||||
///Window features requested by the webpage.
|
///Window features requested by the webpage.
|
||||||
@SupportedPlatforms(
|
@SupportedPlatforms(platforms: [
|
||||||
platforms: [
|
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
apiName: "WKWindowFeatures",
|
apiName: "WKWindowFeatures",
|
||||||
apiUrl: "https://developer.apple.com/documentation/webkit/wkwindowfeatures"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/webkit/wkwindowfeatures")
|
||||||
]
|
])
|
||||||
)
|
|
||||||
WindowFeatures_? windowFeatures;
|
WindowFeatures_? windowFeatures;
|
||||||
|
|
||||||
CreateWindowAction_(
|
CreateWindowAction_(
|
||||||
|
|
|
@ -18,5 +18,6 @@ class CrossOrigin_ {
|
||||||
static const ANONYMOUS = const CrossOrigin_._internal("anonymous");
|
static const ANONYMOUS = const CrossOrigin_._internal("anonymous");
|
||||||
|
|
||||||
///CORS requests for this element will have the credentials flag set to 'include'.
|
///CORS requests for this element will have the credentials flag set to 'include'.
|
||||||
static const USE_CREDENTIALS = const CrossOrigin_._internal("use-credentials");
|
static const USE_CREDENTIALS =
|
||||||
|
const CrossOrigin_._internal("use-credentials");
|
||||||
}
|
}
|
|
@ -13,7 +13,8 @@ class DataDetectorTypes_ {
|
||||||
static const NONE = const DataDetectorTypes_._internal("NONE");
|
static const NONE = const DataDetectorTypes_._internal("NONE");
|
||||||
|
|
||||||
///Phone numbers are detected and turned into links.
|
///Phone numbers are detected and turned into links.
|
||||||
static const PHONE_NUMBER = const DataDetectorTypes_._internal("PHONE_NUMBER");
|
static const PHONE_NUMBER =
|
||||||
|
const DataDetectorTypes_._internal("PHONE_NUMBER");
|
||||||
|
|
||||||
///URLs in text are detected and turned into links.
|
///URLs in text are detected and turned into links.
|
||||||
static const LINK = const DataDetectorTypes_._internal("LINK");
|
static const LINK = const DataDetectorTypes_._internal("LINK");
|
||||||
|
|
|
@ -43,9 +43,7 @@ class FetchRequest_ {
|
||||||
String? mode;
|
String? mode;
|
||||||
|
|
||||||
///The request credentials used by the request.
|
///The request credentials used by the request.
|
||||||
@ExchangeableObjectProperty(
|
@ExchangeableObjectProperty(deserializer: _fetchRequestCredentialDeserializer)
|
||||||
deserializer: _fetchRequestCredentialDeserializer
|
|
||||||
)
|
|
||||||
FetchRequestCredential_? credentials;
|
FetchRequestCredential_? credentials;
|
||||||
|
|
||||||
///The cache mode used by the request.
|
///The cache mode used by the request.
|
||||||
|
|
|
@ -16,9 +16,8 @@ class FindSession_ {
|
||||||
/// Defines how results are reported through the find panel's UI.
|
/// Defines how results are reported through the find panel's UI.
|
||||||
SearchResultDisplayStyle_ searchResultDisplayStyle;
|
SearchResultDisplayStyle_ searchResultDisplayStyle;
|
||||||
|
|
||||||
FindSession_({
|
FindSession_(
|
||||||
required this.resultCount,
|
{required this.resultCount,
|
||||||
required this.highlightedResultIndex,
|
required this.highlightedResultIndex,
|
||||||
required this.searchResultDisplayStyle
|
required this.searchResultDisplayStyle});
|
||||||
});
|
|
||||||
}
|
}
|
|
@ -15,7 +15,8 @@ class ForceDarkStrategy_ {
|
||||||
///To avoid mixing two different darkening strategies, the `prefers-color-scheme` media query will evaluate to light.
|
///To avoid mixing two different darkening strategies, the `prefers-color-scheme` media query will evaluate to light.
|
||||||
///
|
///
|
||||||
///See [specification](https://drafts.csswg.org/css-color-adjust-1/) for more information.
|
///See [specification](https://drafts.csswg.org/css-color-adjust-1/) for more information.
|
||||||
static const USER_AGENT_DARKENING_ONLY = const ForceDarkStrategy_._internal(0);
|
static const USER_AGENT_DARKENING_ONLY =
|
||||||
|
const ForceDarkStrategy_._internal(0);
|
||||||
|
|
||||||
///In this mode [WebView] content will always be darkened using dark theme provided by web page.
|
///In this mode [WebView] content will always be darkened using dark theme provided by web page.
|
||||||
///If web page does not provide dark theme support [WebView] content will be rendered with a default theme.
|
///If web page does not provide dark theme support [WebView] content will be rendered with a default theme.
|
||||||
|
@ -29,5 +30,6 @@ class ForceDarkStrategy_ {
|
||||||
///If the metadata is not presented [WebView] content will be darkened by a user agent and `prefers-color-scheme` media query will evaluate to light.
|
///If the metadata is not presented [WebView] content will be darkened by a user agent and `prefers-color-scheme` media query will evaluate to light.
|
||||||
///
|
///
|
||||||
///See [specification](https://drafts.csswg.org/css-color-adjust-1/) for more information.
|
///See [specification](https://drafts.csswg.org/css-color-adjust-1/) for more information.
|
||||||
static const PREFER_WEB_THEME_OVER_USER_AGENT_DARKENING = const ForceDarkStrategy_._internal(2);
|
static const PREFER_WEB_THEME_OVER_USER_AGENT_DARKENING =
|
||||||
|
const ForceDarkStrategy_._internal(2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@ class HttpAuthResponseAction_ {
|
||||||
// ignore: unused_field
|
// ignore: unused_field
|
||||||
final int _value;
|
final int _value;
|
||||||
const HttpAuthResponseAction_._internal(this._value);
|
const HttpAuthResponseAction_._internal(this._value);
|
||||||
|
|
||||||
///Instructs the WebView to cancel the authentication request.
|
///Instructs the WebView to cancel the authentication request.
|
||||||
static const CANCEL = const HttpAuthResponseAction_._internal(0);
|
static const CANCEL = const HttpAuthResponseAction_._internal(0);
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,7 @@ class InAppWebViewInitialData_ {
|
||||||
Uri? androidHistoryUrl;
|
Uri? androidHistoryUrl;
|
||||||
|
|
||||||
///The URL to use as the history entry. If `null` defaults to `about:blank`. If non-null, this must be a valid URL.
|
///The URL to use as the history entry. If `null` defaults to `about:blank`. If non-null, this must be a valid URL.
|
||||||
@SupportedPlatforms(platforms: [
|
@SupportedPlatforms(platforms: [AndroidPlatform()])
|
||||||
AndroidPlatform()
|
|
||||||
])
|
|
||||||
Uri? historyUrl;
|
Uri? historyUrl;
|
||||||
|
|
||||||
InAppWebViewInitialData_(
|
InAppWebViewInitialData_(
|
||||||
|
|
|
@ -30,7 +30,9 @@ class LayoutInDisplayCutoutMode_ {
|
||||||
static const ALWAYS = const LayoutInDisplayCutoutMode_._internal(3);
|
static const ALWAYS = const LayoutInDisplayCutoutMode_._internal(3);
|
||||||
|
|
||||||
@ExchangeableObjectMethod(ignore: true)
|
@ExchangeableObjectMethod(ignore: true)
|
||||||
static LayoutInDisplayCutoutMode_? fromNativeValue(int? value) {return null;}
|
static LayoutInDisplayCutoutMode_? fromNativeValue(int? value) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
///Android-specific class representing the share state that should be applied to the custom tab.
|
///Android-specific class representing the share state that should be applied to the custom tab.
|
||||||
|
|
|
@ -20,5 +20,6 @@ class LoadedResource_ {
|
||||||
///Returns the [DOMHighResTimeStamp](https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp) duration to fetch a resource.
|
///Returns the [DOMHighResTimeStamp](https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp) duration to fetch a resource.
|
||||||
double? duration;
|
double? duration;
|
||||||
|
|
||||||
LoadedResource_({this.initiatorType, this.url, this.startTime, this.duration});
|
LoadedResource_(
|
||||||
|
{this.initiatorType, this.url, this.startTime, this.duration});
|
||||||
}
|
}
|
|
@ -1,4 +1,5 @@
|
||||||
export 'action_mode_menu_item.dart' show ActionModeMenuItem, AndroidActionModeMenuItem;
|
export 'action_mode_menu_item.dart'
|
||||||
|
show ActionModeMenuItem, AndroidActionModeMenuItem;
|
||||||
export 'ajax_request.dart' show AjaxRequest;
|
export 'ajax_request.dart' show AjaxRequest;
|
||||||
export 'ajax_request_action.dart' show AjaxRequestAction;
|
export 'ajax_request_action.dart' show AjaxRequestAction;
|
||||||
export 'ajax_request_event.dart' show AjaxRequestEvent;
|
export 'ajax_request_event.dart' show AjaxRequestEvent;
|
||||||
|
@ -6,7 +7,8 @@ export 'ajax_request_event_type.dart' show AjaxRequestEventType;
|
||||||
export 'ajax_request_headers.dart' show AjaxRequestHeaders;
|
export 'ajax_request_headers.dart' show AjaxRequestHeaders;
|
||||||
export 'ajax_request_ready_state.dart' show AjaxRequestReadyState;
|
export 'ajax_request_ready_state.dart' show AjaxRequestReadyState;
|
||||||
export 'attributed_string.dart' show AttributedString, IOSNSAttributedString;
|
export 'attributed_string.dart' show AttributedString, IOSNSAttributedString;
|
||||||
export 'attributed_string_text_effect_style.dart' show AttributedStringTextEffectStyle, IOSNSAttributedStringTextEffectStyle;
|
export 'attributed_string_text_effect_style.dart'
|
||||||
|
show AttributedStringTextEffectStyle, IOSNSAttributedStringTextEffectStyle;
|
||||||
export 'cache_mode.dart' show CacheMode, AndroidCacheMode;
|
export 'cache_mode.dart' show CacheMode, AndroidCacheMode;
|
||||||
export 'call_async_javascript_result.dart' show CallAsyncJavaScriptResult;
|
export 'call_async_javascript_result.dart' show CallAsyncJavaScriptResult;
|
||||||
export 'client_cert_challenge.dart' show ClientCertChallenge;
|
export 'client_cert_challenge.dart' show ClientCertChallenge;
|
||||||
|
@ -16,8 +18,10 @@ export 'compress_format.dart' show CompressFormat;
|
||||||
export 'console_message.dart' show ConsoleMessage;
|
export 'console_message.dart' show ConsoleMessage;
|
||||||
export 'console_message_level.dart' show ConsoleMessageLevel;
|
export 'console_message_level.dart' show ConsoleMessageLevel;
|
||||||
export 'content_blocker_action_type.dart' show ContentBlockerActionType;
|
export 'content_blocker_action_type.dart' show ContentBlockerActionType;
|
||||||
export 'content_blocker_trigger_load_type.dart' show ContentBlockerTriggerLoadType;
|
export 'content_blocker_trigger_load_type.dart'
|
||||||
export 'content_blocker_trigger_resource_type.dart' show ContentBlockerTriggerResourceType;
|
show ContentBlockerTriggerLoadType;
|
||||||
|
export 'content_blocker_trigger_resource_type.dart'
|
||||||
|
show ContentBlockerTriggerResourceType;
|
||||||
export 'content_world.dart' show ContentWorld;
|
export 'content_world.dart' show ContentWorld;
|
||||||
export 'cookie.dart' show Cookie;
|
export 'cookie.dart' show Cookie;
|
||||||
export 'create_window_action.dart' show CreateWindowAction;
|
export 'create_window_action.dart' show CreateWindowAction;
|
||||||
|
@ -25,27 +29,34 @@ export 'cross_origin.dart' show CrossOrigin;
|
||||||
export 'css_link_html_tag_attributes.dart' show CSSLinkHtmlTagAttributes;
|
export 'css_link_html_tag_attributes.dart' show CSSLinkHtmlTagAttributes;
|
||||||
export 'custom_scheme_response.dart' show CustomSchemeResponse;
|
export 'custom_scheme_response.dart' show CustomSchemeResponse;
|
||||||
export 'custom_tabs_share_state.dart' show CustomTabsShareState;
|
export 'custom_tabs_share_state.dart' show CustomTabsShareState;
|
||||||
export 'data_detector_types.dart' show DataDetectorTypes, IOSWKDataDetectorTypes;
|
export 'data_detector_types.dart'
|
||||||
export 'dismiss_button_style.dart' show DismissButtonStyle, IOSSafariDismissButtonStyle;
|
show DataDetectorTypes, IOSWKDataDetectorTypes;
|
||||||
|
export 'dismiss_button_style.dart'
|
||||||
|
show DismissButtonStyle, IOSSafariDismissButtonStyle;
|
||||||
export 'download_start_request.dart' show DownloadStartRequest;
|
export 'download_start_request.dart' show DownloadStartRequest;
|
||||||
export 'favicon.dart' show Favicon;
|
export 'favicon.dart' show Favicon;
|
||||||
export 'fetch_request.dart' show FetchRequest;
|
export 'fetch_request.dart' show FetchRequest;
|
||||||
export 'fetch_request_action.dart' show FetchRequestAction;
|
export 'fetch_request_action.dart' show FetchRequestAction;
|
||||||
export 'fetch_request_credential.dart' show FetchRequestCredential;
|
export 'fetch_request_credential.dart' show FetchRequestCredential;
|
||||||
export 'fetch_request_credential_default.dart' show FetchRequestCredentialDefault;
|
export 'fetch_request_credential_default.dart'
|
||||||
export 'fetch_request_federated_credential.dart' show FetchRequestFederatedCredential;
|
show FetchRequestCredentialDefault;
|
||||||
export 'fetch_request_password_credential.dart' show FetchRequestPasswordCredential;
|
export 'fetch_request_federated_credential.dart'
|
||||||
|
show FetchRequestFederatedCredential;
|
||||||
|
export 'fetch_request_password_credential.dart'
|
||||||
|
show FetchRequestPasswordCredential;
|
||||||
export 'force_dark.dart' show ForceDark, AndroidForceDark;
|
export 'force_dark.dart' show ForceDark, AndroidForceDark;
|
||||||
export 'force_dark_strategy.dart' show ForceDarkStrategy;
|
export 'force_dark_strategy.dart' show ForceDarkStrategy;
|
||||||
export 'form_resubmission_action.dart' show FormResubmissionAction;
|
export 'form_resubmission_action.dart' show FormResubmissionAction;
|
||||||
export 'frame_info.dart' show FrameInfo, IOSWKFrameInfo;
|
export 'frame_info.dart' show FrameInfo, IOSWKFrameInfo;
|
||||||
export 'geolocation_permission_show_prompt_response.dart' show GeolocationPermissionShowPromptResponse;
|
export 'geolocation_permission_show_prompt_response.dart'
|
||||||
|
show GeolocationPermissionShowPromptResponse;
|
||||||
export 'http_auth_response.dart' show HttpAuthResponse;
|
export 'http_auth_response.dart' show HttpAuthResponse;
|
||||||
export 'http_auth_response_action.dart' show HttpAuthResponseAction;
|
export 'http_auth_response_action.dart' show HttpAuthResponseAction;
|
||||||
export 'http_authentication_challenge.dart' show HttpAuthenticationChallenge;
|
export 'http_authentication_challenge.dart' show HttpAuthenticationChallenge;
|
||||||
export 'http_cookie_same_site_policy.dart' show HTTPCookieSameSitePolicy;
|
export 'http_cookie_same_site_policy.dart' show HTTPCookieSameSitePolicy;
|
||||||
export 'in_app_webview_hit_test_result.dart' show InAppWebViewHitTestResult;
|
export 'in_app_webview_hit_test_result.dart' show InAppWebViewHitTestResult;
|
||||||
export 'in_app_webview_hit_test_result_type.dart' show InAppWebViewHitTestResultType;
|
export 'in_app_webview_hit_test_result_type.dart'
|
||||||
|
show InAppWebViewHitTestResultType;
|
||||||
export 'in_app_webview_initial_data.dart' show InAppWebViewInitialData;
|
export 'in_app_webview_initial_data.dart' show InAppWebViewInitialData;
|
||||||
export 'in_app_webview_rect.dart' show InAppWebViewRect;
|
export 'in_app_webview_rect.dart' show InAppWebViewRect;
|
||||||
export 'javascript_handler_callback.dart' show JavaScriptHandlerCallback;
|
export 'javascript_handler_callback.dart' show JavaScriptHandlerCallback;
|
||||||
|
@ -54,7 +65,8 @@ export 'js_alert_response.dart' show JsAlertResponse;
|
||||||
export 'js_alert_response_action.dart' show JsAlertResponseAction;
|
export 'js_alert_response_action.dart' show JsAlertResponseAction;
|
||||||
export 'js_before_unload_request.dart' show JsBeforeUnloadRequest;
|
export 'js_before_unload_request.dart' show JsBeforeUnloadRequest;
|
||||||
export 'js_before_unload_response.dart' show JsBeforeUnloadResponse;
|
export 'js_before_unload_response.dart' show JsBeforeUnloadResponse;
|
||||||
export 'js_before_unload_response_action.dart' show JsBeforeUnloadResponseAction;
|
export 'js_before_unload_response_action.dart'
|
||||||
|
show JsBeforeUnloadResponseAction;
|
||||||
export 'js_confirm_request.dart' show JsConfirmRequest;
|
export 'js_confirm_request.dart' show JsConfirmRequest;
|
||||||
export 'js_confirm_response.dart' show JsConfirmResponse;
|
export 'js_confirm_response.dart' show JsConfirmResponse;
|
||||||
export 'js_confirm_response_action.dart' show JsConfirmResponseAction;
|
export 'js_confirm_response_action.dart' show JsConfirmResponseAction;
|
||||||
|
@ -62,7 +74,8 @@ export 'js_prompt_request.dart' show JsPromptRequest;
|
||||||
export 'js_prompt_response.dart' show JsPromptResponse;
|
export 'js_prompt_response.dart' show JsPromptResponse;
|
||||||
export 'js_prompt_response_action.dart' show JsPromptResponseAction;
|
export 'js_prompt_response_action.dart' show JsPromptResponseAction;
|
||||||
export 'layout_algorithm.dart' show LayoutAlgorithm, AndroidLayoutAlgorithm;
|
export 'layout_algorithm.dart' show LayoutAlgorithm, AndroidLayoutAlgorithm;
|
||||||
export 'layout_in_display_cutout_mode.dart' show LayoutInDisplayCutoutMode, AndroidLayoutInDisplayCutoutMode;
|
export 'layout_in_display_cutout_mode.dart'
|
||||||
|
show LayoutInDisplayCutoutMode, AndroidLayoutInDisplayCutoutMode;
|
||||||
export 'loaded_resource.dart' show LoadedResource;
|
export 'loaded_resource.dart' show LoadedResource;
|
||||||
export 'login_request.dart' show LoginRequest;
|
export 'login_request.dart' show LoginRequest;
|
||||||
export 'media_capture_state.dart' show MediaCaptureState;
|
export 'media_capture_state.dart' show MediaCaptureState;
|
||||||
|
@ -70,20 +83,26 @@ export 'media_playback_state.dart' show MediaPlaybackState;
|
||||||
export 'meta_tag.dart' show MetaTag;
|
export 'meta_tag.dart' show MetaTag;
|
||||||
export 'meta_tag_attribute.dart' show MetaTagAttribute;
|
export 'meta_tag_attribute.dart' show MetaTagAttribute;
|
||||||
export 'mixed_content_mode.dart' show MixedContentMode, AndroidMixedContentMode;
|
export 'mixed_content_mode.dart' show MixedContentMode, AndroidMixedContentMode;
|
||||||
export 'modal_presentation_style.dart' show ModalPresentationStyle, IOSUIModalPresentationStyle;
|
export 'modal_presentation_style.dart'
|
||||||
export 'modal_transition_style.dart' show ModalTransitionStyle, IOSUIModalTransitionStyle;
|
show ModalPresentationStyle, IOSUIModalPresentationStyle;
|
||||||
|
export 'modal_transition_style.dart'
|
||||||
|
show ModalTransitionStyle, IOSUIModalTransitionStyle;
|
||||||
export 'navigation_action.dart' show NavigationAction;
|
export 'navigation_action.dart' show NavigationAction;
|
||||||
export 'navigation_action_policy.dart' show NavigationActionPolicy;
|
export 'navigation_action_policy.dart' show NavigationActionPolicy;
|
||||||
export 'navigation_response.dart' show NavigationResponse, IOSWKNavigationResponse;
|
export 'navigation_response.dart'
|
||||||
export 'navigation_response_action.dart' show NavigationResponseAction, IOSNavigationResponseAction;
|
show NavigationResponse, IOSWKNavigationResponse;
|
||||||
|
export 'navigation_response_action.dart'
|
||||||
|
show NavigationResponseAction, IOSNavigationResponseAction;
|
||||||
export 'navigation_type.dart' show NavigationType, IOSWKNavigationType;
|
export 'navigation_type.dart' show NavigationType, IOSWKNavigationType;
|
||||||
export 'on_post_message_callback.dart' show OnPostMessageCallback;
|
export 'on_post_message_callback.dart' show OnPostMessageCallback;
|
||||||
export 'over_scroll_mode.dart' show OverScrollMode, AndroidOverScrollMode;
|
export 'over_scroll_mode.dart' show OverScrollMode, AndroidOverScrollMode;
|
||||||
export 'pdf_configuration.dart' show PDFConfiguration, IOSWKPDFConfiguration;
|
export 'pdf_configuration.dart' show PDFConfiguration, IOSWKPDFConfiguration;
|
||||||
export 'permission_request.dart' show PermissionRequest;
|
export 'permission_request.dart' show PermissionRequest;
|
||||||
export 'permission_resource_type.dart' show PermissionResourceType;
|
export 'permission_resource_type.dart' show PermissionResourceType;
|
||||||
export 'permission_response.dart' show PermissionResponse, PermissionRequestResponse;
|
export 'permission_response.dart'
|
||||||
export 'permission_response_action.dart' show PermissionResponseAction, PermissionRequestResponseAction;
|
show PermissionResponse, PermissionRequestResponse;
|
||||||
|
export 'permission_response_action.dart'
|
||||||
|
show PermissionResponseAction, PermissionRequestResponseAction;
|
||||||
export 'print_job_attributes.dart' show PrintJobAttributes;
|
export 'print_job_attributes.dart' show PrintJobAttributes;
|
||||||
export 'print_job_color_mode.dart' show PrintJobColorMode;
|
export 'print_job_color_mode.dart' show PrintJobColorMode;
|
||||||
export 'print_job_duplex_mode.dart' show PrintJobDuplexMode;
|
export 'print_job_duplex_mode.dart' show PrintJobDuplexMode;
|
||||||
|
@ -96,7 +115,8 @@ export 'print_job_resolution.dart' show PrintJobResolution;
|
||||||
export 'print_job_state.dart' show PrintJobState;
|
export 'print_job_state.dart' show PrintJobState;
|
||||||
export 'proxy_rule.dart' show ProxyRule;
|
export 'proxy_rule.dart' show ProxyRule;
|
||||||
export 'proxy_scheme_filter.dart' show ProxySchemeFilter;
|
export 'proxy_scheme_filter.dart' show ProxySchemeFilter;
|
||||||
export 'pull_to_refresh_size.dart' show PullToRefreshSize, AndroidPullToRefreshSize;
|
export 'pull_to_refresh_size.dart'
|
||||||
|
show PullToRefreshSize, AndroidPullToRefreshSize;
|
||||||
export 'referrer_policy.dart' show ReferrerPolicy;
|
export 'referrer_policy.dart' show ReferrerPolicy;
|
||||||
export 'render_process_gone_detail.dart' show RenderProcessGoneDetail;
|
export 'render_process_gone_detail.dart' show RenderProcessGoneDetail;
|
||||||
export 'renderer_priority.dart' show RendererPriority;
|
export 'renderer_priority.dart' show RendererPriority;
|
||||||
|
@ -110,41 +130,62 @@ export 'sandbox.dart' show Sandbox;
|
||||||
export 'screenshot_configuration.dart' show ScreenshotConfiguration;
|
export 'screenshot_configuration.dart' show ScreenshotConfiguration;
|
||||||
export 'script_html_tag_attributes.dart' show ScriptHtmlTagAttributes;
|
export 'script_html_tag_attributes.dart' show ScriptHtmlTagAttributes;
|
||||||
export 'scrollbar_style.dart' show ScrollBarStyle, AndroidScrollBarStyle;
|
export 'scrollbar_style.dart' show ScrollBarStyle, AndroidScrollBarStyle;
|
||||||
export 'scrollview_content_inset_adjustment_behavior.dart' show ScrollViewContentInsetAdjustmentBehavior, IOSUIScrollViewContentInsetAdjustmentBehavior;
|
export 'scrollview_content_inset_adjustment_behavior.dart'
|
||||||
export 'scrollview_deceleration_rate.dart' show ScrollViewDecelerationRate, IOSUIScrollViewDecelerationRate;
|
show
|
||||||
|
ScrollViewContentInsetAdjustmentBehavior,
|
||||||
|
IOSUIScrollViewContentInsetAdjustmentBehavior;
|
||||||
|
export 'scrollview_deceleration_rate.dart'
|
||||||
|
show ScrollViewDecelerationRate, IOSUIScrollViewDecelerationRate;
|
||||||
export 'security_origin.dart' show SecurityOrigin, IOSWKSecurityOrigin;
|
export 'security_origin.dart' show SecurityOrigin, IOSWKSecurityOrigin;
|
||||||
export 'selection_granularity.dart' show SelectionGranularity, IOSWKSelectionGranularity;
|
export 'selection_granularity.dart'
|
||||||
|
show SelectionGranularity, IOSWKSelectionGranularity;
|
||||||
export 'server_trust_auth_response.dart' show ServerTrustAuthResponse;
|
export 'server_trust_auth_response.dart' show ServerTrustAuthResponse;
|
||||||
export 'server_trust_auth_response_action.dart' show ServerTrustAuthResponseAction;
|
export 'server_trust_auth_response_action.dart'
|
||||||
|
show ServerTrustAuthResponseAction;
|
||||||
export 'server_trust_challenge.dart' show ServerTrustChallenge;
|
export 'server_trust_challenge.dart' show ServerTrustChallenge;
|
||||||
export 'should_allow_deprecated_tls_action.dart' show ShouldAllowDeprecatedTLSAction, IOSShouldAllowDeprecatedTLSAction;
|
export 'should_allow_deprecated_tls_action.dart'
|
||||||
|
show ShouldAllowDeprecatedTLSAction, IOSShouldAllowDeprecatedTLSAction;
|
||||||
export 'ssl_certificate.dart' show SslCertificate;
|
export 'ssl_certificate.dart' show SslCertificate;
|
||||||
export 'ssl_certificate_dname.dart' show SslCertificateDName;
|
export 'ssl_certificate_dname.dart' show SslCertificateDName;
|
||||||
export 'ssl_error.dart' show SslError;
|
export 'ssl_error.dart' show SslError;
|
||||||
export 'ssl_error_type.dart' show SslErrorType, AndroidSslError, IOSSslError;
|
export 'ssl_error_type.dart' show SslErrorType, AndroidSslError, IOSSslError;
|
||||||
export 'trusted_web_activity_default_display_mode.dart' show TrustedWebActivityDefaultDisplayMode;
|
export 'trusted_web_activity_default_display_mode.dart'
|
||||||
export 'trusted_web_activity_display_mode.dart' show TrustedWebActivityDisplayMode;
|
show TrustedWebActivityDefaultDisplayMode;
|
||||||
export 'trusted_web_activity_immersive_display_mode.dart' show TrustedWebActivityImmersiveDisplayMode;
|
export 'trusted_web_activity_display_mode.dart'
|
||||||
export 'trusted_web_activity_screen_orientation.dart' show TrustedWebActivityScreenOrientation;
|
show TrustedWebActivityDisplayMode;
|
||||||
|
export 'trusted_web_activity_immersive_display_mode.dart'
|
||||||
|
show TrustedWebActivityImmersiveDisplayMode;
|
||||||
|
export 'trusted_web_activity_screen_orientation.dart'
|
||||||
|
show TrustedWebActivityScreenOrientation;
|
||||||
export 'underline_style.dart' show UnderlineStyle, IOSNSUnderlineStyle;
|
export 'underline_style.dart' show UnderlineStyle, IOSNSUnderlineStyle;
|
||||||
export 'url_authentication_challenge.dart' show URLAuthenticationChallenge;
|
export 'url_authentication_challenge.dart' show URLAuthenticationChallenge;
|
||||||
export 'url_credential.dart' show URLCredential;
|
export 'url_credential.dart' show URLCredential;
|
||||||
export 'url_credential_persistence.dart' show URLCredentialPersistence, IOSURLCredentialPersistence;
|
export 'url_credential_persistence.dart'
|
||||||
|
show URLCredentialPersistence, IOSURLCredentialPersistence;
|
||||||
export 'url_protection_space.dart' show URLProtectionSpace;
|
export 'url_protection_space.dart' show URLProtectionSpace;
|
||||||
export 'url_protection_space_authentication_method.dart' show URLProtectionSpaceAuthenticationMethod, IOSNSURLProtectionSpaceAuthenticationMethod;
|
export 'url_protection_space_authentication_method.dart'
|
||||||
export 'url_protection_space_http_auth_credentials.dart' show URLProtectionSpaceHttpAuthCredentials;
|
show
|
||||||
export 'url_protection_space_proxy_type.dart' show URLProtectionSpaceProxyType, IOSNSURLProtectionSpaceProxyType;
|
URLProtectionSpaceAuthenticationMethod,
|
||||||
|
IOSNSURLProtectionSpaceAuthenticationMethod;
|
||||||
|
export 'url_protection_space_http_auth_credentials.dart'
|
||||||
|
show URLProtectionSpaceHttpAuthCredentials;
|
||||||
|
export 'url_protection_space_proxy_type.dart'
|
||||||
|
show URLProtectionSpaceProxyType, IOSNSURLProtectionSpaceProxyType;
|
||||||
export 'url_request.dart' show URLRequest;
|
export 'url_request.dart' show URLRequest;
|
||||||
export 'url_request_attribution.dart' show URLRequestAttribution;
|
export 'url_request_attribution.dart' show URLRequestAttribution;
|
||||||
export 'url_request_cache_policy.dart' show URLRequestCachePolicy, IOSURLRequestCachePolicy;
|
export 'url_request_cache_policy.dart'
|
||||||
export 'url_request_network_service_type.dart' show URLRequestNetworkServiceType, IOSURLRequestNetworkServiceType;
|
show URLRequestCachePolicy, IOSURLRequestCachePolicy;
|
||||||
|
export 'url_request_network_service_type.dart'
|
||||||
|
show URLRequestNetworkServiceType, IOSURLRequestNetworkServiceType;
|
||||||
export 'url_response.dart' show URLResponse, IOSURLResponse;
|
export 'url_response.dart' show URLResponse, IOSURLResponse;
|
||||||
export 'user_preferred_content_mode.dart' show UserPreferredContentMode;
|
export 'user_preferred_content_mode.dart' show UserPreferredContentMode;
|
||||||
export 'user_script.dart' show UserScript;
|
export 'user_script.dart' show UserScript;
|
||||||
export 'user_script_injection_time.dart' show UserScriptInjectionTime;
|
export 'user_script_injection_time.dart' show UserScriptInjectionTime;
|
||||||
export 'vertical_scrollbar_position.dart' show VerticalScrollbarPosition, AndroidVerticalScrollbarPosition;
|
export 'vertical_scrollbar_position.dart'
|
||||||
|
show VerticalScrollbarPosition, AndroidVerticalScrollbarPosition;
|
||||||
export 'web_archive_format.dart' show WebArchiveFormat;
|
export 'web_archive_format.dart' show WebArchiveFormat;
|
||||||
export 'web_authentication_session_error.dart' show WebAuthenticationSessionError;
|
export 'web_authentication_session_error.dart'
|
||||||
|
show WebAuthenticationSessionError;
|
||||||
export 'web_history.dart' show WebHistory;
|
export 'web_history.dart' show WebHistory;
|
||||||
export 'web_history_item.dart' show WebHistoryItem;
|
export 'web_history_item.dart' show WebHistoryItem;
|
||||||
export 'web_message_callback.dart' show WebMessageCallback;
|
export 'web_message_callback.dart' show WebMessageCallback;
|
||||||
|
@ -154,13 +195,16 @@ export 'web_resource_request.dart' show WebResourceRequest;
|
||||||
export 'web_resource_response.dart' show WebResourceResponse;
|
export 'web_resource_response.dart' show WebResourceResponse;
|
||||||
export 'web_storage_origin.dart' show WebStorageOrigin, AndroidWebStorageOrigin;
|
export 'web_storage_origin.dart' show WebStorageOrigin, AndroidWebStorageOrigin;
|
||||||
export 'web_storage_type.dart' show WebStorageType;
|
export 'web_storage_type.dart' show WebStorageType;
|
||||||
export 'website_data_record.dart' show WebsiteDataRecord, IOSWKWebsiteDataRecord;
|
export 'website_data_record.dart'
|
||||||
|
show WebsiteDataRecord, IOSWKWebsiteDataRecord;
|
||||||
export 'website_data_type.dart' show WebsiteDataType, IOSWKWebsiteDataType;
|
export 'website_data_type.dart' show WebsiteDataType, IOSWKWebsiteDataType;
|
||||||
export 'webview_implementation.dart' show WebViewImplementation;
|
export 'webview_implementation.dart' show WebViewImplementation;
|
||||||
export 'webview_package_info.dart' show WebViewPackageInfo, AndroidWebViewPackageInfo;
|
export 'webview_package_info.dart'
|
||||||
|
show WebViewPackageInfo, AndroidWebViewPackageInfo;
|
||||||
export 'webview_render_process_action.dart' show WebViewRenderProcessAction;
|
export 'webview_render_process_action.dart' show WebViewRenderProcessAction;
|
||||||
export 'window_features.dart' show WindowFeatures, IOSWKWindowFeatures;
|
export 'window_features.dart' show WindowFeatures, IOSWKWindowFeatures;
|
||||||
export 'requested_with_header_mode.dart' show RequestedWithHeaderMode;
|
export 'requested_with_header_mode.dart' show RequestedWithHeaderMode;
|
||||||
export 'find_session.dart' show FindSession;
|
export 'find_session.dart' show FindSession;
|
||||||
export 'search_result_display_style.dart' show SearchResultDisplayStyle;
|
export 'search_result_display_style.dart' show SearchResultDisplayStyle;
|
||||||
export 'content_blocker_trigger_load_context.dart' show ContentBlockerTriggerLoadContext;
|
export 'content_blocker_trigger_load_context.dart'
|
||||||
|
show ContentBlockerTriggerLoadContext;
|
||||||
|
|
|
@ -11,7 +11,8 @@ class MixedContentMode_ {
|
||||||
|
|
||||||
///In this mode, the WebView will allow a secure origin to load content from any other origin, even if that origin is insecure.
|
///In this mode, the WebView will allow a secure origin to load content from any other origin, even if that origin is insecure.
|
||||||
///This is the least secure mode of operation for the WebView, and where possible apps should not set this mode.
|
///This is the least secure mode of operation for the WebView, and where possible apps should not set this mode.
|
||||||
static const MIXED_CONTENT_ALWAYS_ALLOW = const MixedContentMode_._internal(0);
|
static const MIXED_CONTENT_ALWAYS_ALLOW =
|
||||||
|
const MixedContentMode_._internal(0);
|
||||||
|
|
||||||
///In this mode, the WebView will not allow a secure origin to load content from an insecure origin.
|
///In this mode, the WebView will not allow a secure origin to load content from an insecure origin.
|
||||||
///This is the preferred and most secure mode of operation for the WebView and apps are strongly advised to use this mode.
|
///This is the preferred and most secure mode of operation for the WebView and apps are strongly advised to use this mode.
|
||||||
|
|
|
@ -28,7 +28,8 @@ class ModalPresentationStyle_ {
|
||||||
static const OVER_FULL_SCREEN = const ModalPresentationStyle_._internal(5);
|
static const OVER_FULL_SCREEN = const ModalPresentationStyle_._internal(5);
|
||||||
|
|
||||||
///A presentation style where the content is displayed over another view controller’s content.
|
///A presentation style where the content is displayed over another view controller’s content.
|
||||||
static const OVER_CURRENT_CONTEXT = const ModalPresentationStyle_._internal(6);
|
static const OVER_CURRENT_CONTEXT =
|
||||||
|
const ModalPresentationStyle_._internal(6);
|
||||||
|
|
||||||
///A presentation style where the content is displayed in a popover view.
|
///A presentation style where the content is displayed in a popover view.
|
||||||
static const POPOVER = const ModalPresentationStyle_._internal(7);
|
static const POPOVER = const ModalPresentationStyle_._internal(7);
|
||||||
|
@ -61,7 +62,8 @@ class IOSUIModalPresentationStyle_ {
|
||||||
static const FORM_SHEET = const IOSUIModalPresentationStyle_._internal(2);
|
static const FORM_SHEET = const IOSUIModalPresentationStyle_._internal(2);
|
||||||
|
|
||||||
///A presentation style where the content is displayed over another view controller’s content.
|
///A presentation style where the content is displayed over another view controller’s content.
|
||||||
static const CURRENT_CONTEXT = const IOSUIModalPresentationStyle_._internal(3);
|
static const CURRENT_CONTEXT =
|
||||||
|
const IOSUIModalPresentationStyle_._internal(3);
|
||||||
|
|
||||||
///A custom view presentation style that is managed by a custom presentation controller and one or more custom animator objects.
|
///A custom view presentation style that is managed by a custom presentation controller and one or more custom animator objects.
|
||||||
static const CUSTOM = const IOSUIModalPresentationStyle_._internal(4);
|
static const CUSTOM = const IOSUIModalPresentationStyle_._internal(4);
|
||||||
|
|
|
@ -32,16 +32,14 @@ class NavigationAction_ {
|
||||||
///For security reasons in certain situations this method may return `false` even though
|
///For security reasons in certain situations this method may return `false` even though
|
||||||
///the sequence of events which caused the request to be created was initiated by a user
|
///the sequence of events which caused the request to be created was initiated by a user
|
||||||
///gesture.
|
///gesture.
|
||||||
@SupportedPlatforms(
|
@SupportedPlatforms(platforms: [
|
||||||
platforms: [
|
|
||||||
AndroidPlatform(
|
AndroidPlatform(
|
||||||
available: "21",
|
available: "21",
|
||||||
apiName: "WebResourceRequest.hasGesture",
|
apiName: "WebResourceRequest.hasGesture",
|
||||||
apiUrl: "https://developer.android.com/reference/android/webkit/WebResourceRequest#hasGesture()",
|
apiUrl:
|
||||||
note: "On Android < 21, this is always `false`"
|
"https://developer.android.com/reference/android/webkit/WebResourceRequest#hasGesture()",
|
||||||
)
|
note: "On Android < 21, this is always `false`")
|
||||||
]
|
])
|
||||||
)
|
|
||||||
bool? hasGesture;
|
bool? hasGesture;
|
||||||
|
|
||||||
///Use [isRedirect] instead.
|
///Use [isRedirect] instead.
|
||||||
|
@ -52,15 +50,13 @@ class NavigationAction_ {
|
||||||
///
|
///
|
||||||
///**NOTE**: If the request is associated to the [WebView.onCreateWindow] event, this is always `false`.
|
///**NOTE**: If the request is associated to the [WebView.onCreateWindow] event, this is always `false`.
|
||||||
///Also, on Android < 21, this is always `false`.
|
///Also, on Android < 21, this is always `false`.
|
||||||
@SupportedPlatforms(
|
@SupportedPlatforms(platforms: [
|
||||||
platforms: [
|
|
||||||
AndroidPlatform(
|
AndroidPlatform(
|
||||||
available: "21",
|
available: "21",
|
||||||
apiName: "WebResourceRequest.isRedirect",
|
apiName: "WebResourceRequest.isRedirect",
|
||||||
apiUrl: "https://developer.android.com/reference/android/webkit/WebResourceRequest#isRedirect()"
|
apiUrl:
|
||||||
)
|
"https://developer.android.com/reference/android/webkit/WebResourceRequest#isRedirect()")
|
||||||
]
|
])
|
||||||
)
|
|
||||||
bool? isRedirect;
|
bool? isRedirect;
|
||||||
|
|
||||||
///Use [navigationType] instead.
|
///Use [navigationType] instead.
|
||||||
|
@ -68,14 +64,12 @@ class NavigationAction_ {
|
||||||
IOSWKNavigationType_? iosWKNavigationType;
|
IOSWKNavigationType_? iosWKNavigationType;
|
||||||
|
|
||||||
///The type of action triggering the navigation.ì
|
///The type of action triggering the navigation.ì
|
||||||
@SupportedPlatforms(
|
@SupportedPlatforms(platforms: [
|
||||||
platforms: [
|
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
apiName: "WKNavigationAction.navigationType",
|
apiName: "WKNavigationAction.navigationType",
|
||||||
apiUrl: "https://developer.apple.com/documentation/webkit/wknavigationaction/1401914-navigationtype"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/webkit/wknavigationaction/1401914-navigationtype")
|
||||||
]
|
])
|
||||||
)
|
|
||||||
NavigationType_? navigationType;
|
NavigationType_? navigationType;
|
||||||
|
|
||||||
///Use [sourceFrame] instead.
|
///Use [sourceFrame] instead.
|
||||||
|
@ -83,14 +77,12 @@ class NavigationAction_ {
|
||||||
IOSWKFrameInfo_? iosSourceFrame;
|
IOSWKFrameInfo_? iosSourceFrame;
|
||||||
|
|
||||||
///The frame that requested the navigation.
|
///The frame that requested the navigation.
|
||||||
@SupportedPlatforms(
|
@SupportedPlatforms(platforms: [
|
||||||
platforms: [
|
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
apiName: "WKNavigationAction.sourceFrame",
|
apiName: "WKNavigationAction.sourceFrame",
|
||||||
apiUrl: "https://developer.apple.com/documentation/webkit/wknavigationaction/1401926-sourceframe"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/webkit/wknavigationaction/1401926-sourceframe")
|
||||||
]
|
])
|
||||||
)
|
|
||||||
FrameInfo_? sourceFrame;
|
FrameInfo_? sourceFrame;
|
||||||
|
|
||||||
///Use [targetFrame] instead.
|
///Use [targetFrame] instead.
|
||||||
|
@ -98,26 +90,22 @@ class NavigationAction_ {
|
||||||
IOSWKFrameInfo_? iosTargetFrame;
|
IOSWKFrameInfo_? iosTargetFrame;
|
||||||
|
|
||||||
///The frame in which to display the new content.
|
///The frame in which to display the new content.
|
||||||
@SupportedPlatforms(
|
@SupportedPlatforms(platforms: [
|
||||||
platforms: [
|
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
apiName: "WKNavigationAction.targetFrame",
|
apiName: "WKNavigationAction.targetFrame",
|
||||||
apiUrl: "https://developer.apple.com/documentation/webkit/wknavigationaction/1401918-targetframe"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/webkit/wknavigationaction/1401918-targetframe")
|
||||||
]
|
])
|
||||||
)
|
|
||||||
FrameInfo_? targetFrame;
|
FrameInfo_? targetFrame;
|
||||||
|
|
||||||
///A value indicating whether the web content used a download attribute to indicate that this should be downloaded.
|
///A value indicating whether the web content used a download attribute to indicate that this should be downloaded.
|
||||||
@SupportedPlatforms(
|
@SupportedPlatforms(platforms: [
|
||||||
platforms: [
|
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
available: "14.5",
|
available: "14.5",
|
||||||
apiName: "WKNavigationAction.shouldPerformDownload",
|
apiName: "WKNavigationAction.shouldPerformDownload",
|
||||||
apiUrl: "https://developer.apple.com/documentation/webkit/wknavigationaction/3727357-shouldperformdownload"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/webkit/wknavigationaction/3727357-shouldperformdownload")
|
||||||
]
|
])
|
||||||
)
|
|
||||||
bool? shouldPerformDownload;
|
bool? shouldPerformDownload;
|
||||||
|
|
||||||
NavigationAction_(
|
NavigationAction_(
|
||||||
|
|
|
@ -16,8 +16,7 @@ class OverScrollMode_ {
|
||||||
static const ALWAYS = const OverScrollMode_._internal(0);
|
static const ALWAYS = const OverScrollMode_._internal(0);
|
||||||
|
|
||||||
///Allow a user to over-scroll this view only if the content is large enough to meaningfully scroll, provided it is a view that can scroll.
|
///Allow a user to over-scroll this view only if the content is large enough to meaningfully scroll, provided it is a view that can scroll.
|
||||||
static const IF_CONTENT_SCROLLS =
|
static const IF_CONTENT_SCROLLS = const OverScrollMode_._internal(1);
|
||||||
const OverScrollMode_._internal(1);
|
|
||||||
|
|
||||||
///Never allow a user to over-scroll this view.
|
///Never allow a user to over-scroll this view.
|
||||||
static const NEVER = const OverScrollMode_._internal(2);
|
static const NEVER = const OverScrollMode_._internal(2);
|
||||||
|
|
|
@ -16,15 +16,15 @@ class PermissionResourceType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'PermissionRequest.RESOURCE_AUDIO_CAPTURE',
|
apiName: 'PermissionRequest.RESOURCE_AUDIO_CAPTURE',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_AUDIO_CAPTURE',
|
apiUrl:
|
||||||
value: 'android.webkit.resource.AUDIO_CAPTURE'
|
'https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_AUDIO_CAPTURE',
|
||||||
),
|
value: 'android.webkit.resource.AUDIO_CAPTURE'),
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
available: "15.0",
|
available: "15.0",
|
||||||
apiName: 'WKMediaCaptureType.microphone',
|
apiName: 'WKMediaCaptureType.microphone',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/webkit/wkmediacapturetype/microphone',
|
apiUrl:
|
||||||
value: 1
|
'https://developer.apple.com/documentation/webkit/wkmediacapturetype/microphone',
|
||||||
)
|
value: 1)
|
||||||
])
|
])
|
||||||
static const MICROPHONE = PermissionResourceType_._internal('MICROPHONE');
|
static const MICROPHONE = PermissionResourceType_._internal('MICROPHONE');
|
||||||
|
|
||||||
|
@ -34,9 +34,9 @@ class PermissionResourceType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'PermissionRequest.RESOURCE_MIDI_SYSEX',
|
apiName: 'PermissionRequest.RESOURCE_MIDI_SYSEX',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_MIDI_SYSEX',
|
apiUrl:
|
||||||
value: 'android.webkit.resource.MIDI_SYSEX'
|
'https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_MIDI_SYSEX',
|
||||||
),
|
value: 'android.webkit.resource.MIDI_SYSEX'),
|
||||||
])
|
])
|
||||||
static const MIDI_SYSEX = PermissionResourceType_._internal('MIDI_SYSEX');
|
static const MIDI_SYSEX = PermissionResourceType_._internal('MIDI_SYSEX');
|
||||||
|
|
||||||
|
@ -44,25 +44,26 @@ class PermissionResourceType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'PermissionRequest.RESOURCE_PROTECTED_MEDIA_ID',
|
apiName: 'PermissionRequest.RESOURCE_PROTECTED_MEDIA_ID',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_PROTECTED_MEDIA_ID',
|
apiUrl:
|
||||||
value: 'android.webkit.resource.PROTECTED_MEDIA_ID'
|
'https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_PROTECTED_MEDIA_ID',
|
||||||
),
|
value: 'android.webkit.resource.PROTECTED_MEDIA_ID'),
|
||||||
])
|
])
|
||||||
static const PROTECTED_MEDIA_ID = PermissionResourceType_._internal('PROTECTED_MEDIA_ID');
|
static const PROTECTED_MEDIA_ID =
|
||||||
|
PermissionResourceType_._internal('PROTECTED_MEDIA_ID');
|
||||||
|
|
||||||
///Resource belongs to video capture device, like camera.
|
///Resource belongs to video capture device, like camera.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'PermissionRequest.RESOURCE_VIDEO_CAPTURE',
|
apiName: 'PermissionRequest.RESOURCE_VIDEO_CAPTURE',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_VIDEO_CAPTURE',
|
apiUrl:
|
||||||
value: 'android.webkit.resource.VIDEO_CAPTURE'
|
'https://developer.android.com/reference/android/webkit/PermissionRequest#RESOURCE_VIDEO_CAPTURE',
|
||||||
),
|
value: 'android.webkit.resource.VIDEO_CAPTURE'),
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
available: "15.0",
|
available: "15.0",
|
||||||
apiName: 'WKMediaCaptureType.camera',
|
apiName: 'WKMediaCaptureType.camera',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/webkit/wkmediacapturetype/camera',
|
apiUrl:
|
||||||
value: 0
|
'https://developer.apple.com/documentation/webkit/wkmediacapturetype/camera',
|
||||||
)
|
value: 0)
|
||||||
])
|
])
|
||||||
static const CAMERA = PermissionResourceType_._internal('CAMERA');
|
static const CAMERA = PermissionResourceType_._internal('CAMERA');
|
||||||
|
|
||||||
|
@ -71,19 +72,17 @@ class PermissionResourceType_ {
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
available: "15.0",
|
available: "15.0",
|
||||||
apiName: 'WKMediaCaptureType.cameraAndMicrophone',
|
apiName: 'WKMediaCaptureType.cameraAndMicrophone',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/webkit/wkmediacapturetype/cameraandmicrophone',
|
apiUrl:
|
||||||
value: 2
|
'https://developer.apple.com/documentation/webkit/wkmediacapturetype/cameraandmicrophone',
|
||||||
)
|
value: 2)
|
||||||
])
|
])
|
||||||
static const CAMERA_AND_MICROPHONE = PermissionResourceType_._internal('CAMERA_AND_MICROPHONE');
|
static const CAMERA_AND_MICROPHONE =
|
||||||
|
PermissionResourceType_._internal('CAMERA_AND_MICROPHONE');
|
||||||
|
|
||||||
///Resource belongs to the device’s orientation and motion.
|
///Resource belongs to the device’s orientation and motion.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(available: "15.0", value: 'deviceOrientationAndMotion')
|
||||||
available: "15.0",
|
|
||||||
value: 'deviceOrientationAndMotion'
|
|
||||||
)
|
|
||||||
])
|
])
|
||||||
static const DEVICE_ORIENTATION_AND_MOTION = PermissionResourceType_._internal(
|
static const DEVICE_ORIENTATION_AND_MOTION =
|
||||||
'DEVICE_ORIENTATION_AND_MOTION');
|
PermissionResourceType_._internal('DEVICE_ORIENTATION_AND_MOTION');
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,8 @@ class PermissionResponse_ {
|
||||||
PermissionResponseAction_? action;
|
PermissionResponseAction_? action;
|
||||||
|
|
||||||
PermissionResponse_(
|
PermissionResponse_(
|
||||||
{this.resources = const [], this.action = PermissionResponseAction_.DENY});
|
{this.resources = const [],
|
||||||
|
this.action = PermissionResponseAction_.DENY});
|
||||||
}
|
}
|
||||||
|
|
||||||
///Class that represents the response used by the [WebView.androidOnPermissionRequest] event.
|
///Class that represents the response used by the [WebView.androidOnPermissionRequest] event.
|
||||||
|
|
|
@ -23,8 +23,7 @@ class PermissionResponseAction_ {
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
available: "15.0",
|
available: "15.0",
|
||||||
note: "On iOS < 15.0, it will fallback to [DENY]",
|
note: "On iOS < 15.0, it will fallback to [DENY]",
|
||||||
value: 2
|
value: 2)
|
||||||
)
|
|
||||||
])
|
])
|
||||||
static const PROMPT = const PermissionResponseAction_._internal(2);
|
static const PROMPT = const PermissionResponseAction_._internal(2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,23 +22,18 @@ class PrintJobAttributes_ {
|
||||||
|
|
||||||
///The duplex mode to use for the print job.
|
///The duplex mode to use for the print job.
|
||||||
@SupportedPlatforms(
|
@SupportedPlatforms(
|
||||||
platforms: [AndroidPlatform(available: "23"), IOSPlatform()]
|
platforms: [AndroidPlatform(available: "23"), IOSPlatform()])
|
||||||
)
|
|
||||||
PrintJobDuplexMode_? duplex;
|
PrintJobDuplexMode_? duplex;
|
||||||
|
|
||||||
///The orientation of the printed content, portrait or landscape.
|
///The orientation of the printed content, portrait or landscape.
|
||||||
PrintJobOrientation_? orientation;
|
PrintJobOrientation_? orientation;
|
||||||
|
|
||||||
///The media size.
|
///The media size.
|
||||||
@SupportedPlatforms(
|
@SupportedPlatforms(platforms: [AndroidPlatform()])
|
||||||
platforms: [AndroidPlatform()]
|
|
||||||
)
|
|
||||||
PrintJobMediaSize_? mediaSize;
|
PrintJobMediaSize_? mediaSize;
|
||||||
|
|
||||||
///The supported resolution in DPI (dots per inch).
|
///The supported resolution in DPI (dots per inch).
|
||||||
@SupportedPlatforms(
|
@SupportedPlatforms(platforms: [AndroidPlatform()])
|
||||||
platforms: [AndroidPlatform()]
|
|
||||||
)
|
|
||||||
PrintJobResolution_? resolution;
|
PrintJobResolution_? resolution;
|
||||||
|
|
||||||
///The margins for each printed page.
|
///The margins for each printed page.
|
||||||
|
|
|
@ -63,8 +63,8 @@ class PrintJobMediaSize_ {
|
||||||
id: "ISO_A3", widthMils: 11690, heightMils: 16540);
|
id: "ISO_A3", widthMils: 11690, heightMils: 16540);
|
||||||
|
|
||||||
///ISO A4 media size: 210mm x 297mm (8.27" x 11.69")
|
///ISO A4 media size: 210mm x 297mm (8.27" x 11.69")
|
||||||
static const ISO_A4 =
|
static const ISO_A4 = const PrintJobMediaSize_(
|
||||||
const PrintJobMediaSize_(id: "ISO_A4", widthMils: 8270, heightMils: 11690);
|
id: "ISO_A4", widthMils: 8270, heightMils: 11690);
|
||||||
|
|
||||||
///ISO A5 media size: 148mm x 210mm (5.83" x 8.27")
|
///ISO A5 media size: 148mm x 210mm (5.83" x 8.27")
|
||||||
static const ISO_A5 =
|
static const ISO_A5 =
|
||||||
|
@ -87,8 +87,8 @@ class PrintJobMediaSize_ {
|
||||||
const PrintJobMediaSize_(id: "ISO_A9", widthMils: 1460, heightMils: 2050);
|
const PrintJobMediaSize_(id: "ISO_A9", widthMils: 1460, heightMils: 2050);
|
||||||
|
|
||||||
///ISO A10 media size: 26mm x 37mm (1.02" x 1.46")
|
///ISO A10 media size: 26mm x 37mm (1.02" x 1.46")
|
||||||
static const ISO_A10 =
|
static const ISO_A10 = const PrintJobMediaSize_(
|
||||||
const PrintJobMediaSize_(id: "ISO_A10", widthMils: 1020, heightMils: 1460);
|
id: "ISO_A10", widthMils: 1020, heightMils: 1460);
|
||||||
|
|
||||||
///ISO B0 media size: 1000mm x 1414mm (39.37" x 55.67")
|
///ISO B0 media size: 1000mm x 1414mm (39.37" x 55.67")
|
||||||
static const ISO_B0 = const PrintJobMediaSize_(
|
static const ISO_B0 = const PrintJobMediaSize_(
|
||||||
|
@ -107,8 +107,8 @@ class PrintJobMediaSize_ {
|
||||||
id: "ISO_B3", widthMils: 13900, heightMils: 19690);
|
id: "ISO_B3", widthMils: 13900, heightMils: 19690);
|
||||||
|
|
||||||
///ISO B4 media size: 250mm x 353mm (9.84" x 13.90")
|
///ISO B4 media size: 250mm x 353mm (9.84" x 13.90")
|
||||||
static const ISO_B4 =
|
static const ISO_B4 = const PrintJobMediaSize_(
|
||||||
const PrintJobMediaSize_(id: "ISO_B4", widthMils: 9840, heightMils: 13900);
|
id: "ISO_B4", widthMils: 9840, heightMils: 13900);
|
||||||
|
|
||||||
///ISO B5 media size: 176mm x 250mm (6.93" x 9.84")
|
///ISO B5 media size: 176mm x 250mm (6.93" x 9.84")
|
||||||
static const ISO_B5 =
|
static const ISO_B5 =
|
||||||
|
@ -131,8 +131,8 @@ class PrintJobMediaSize_ {
|
||||||
const PrintJobMediaSize_(id: "ISO_B9", widthMils: 1730, heightMils: 2440);
|
const PrintJobMediaSize_(id: "ISO_B9", widthMils: 1730, heightMils: 2440);
|
||||||
|
|
||||||
///ISO B10 media size: 31mm x 44mm (1.22" x 1.73")
|
///ISO B10 media size: 31mm x 44mm (1.22" x 1.73")
|
||||||
static const ISO_B10 =
|
static const ISO_B10 = const PrintJobMediaSize_(
|
||||||
const PrintJobMediaSize_(id: "ISO_B10", widthMils: 1220, heightMils: 1730);
|
id: "ISO_B10", widthMils: 1220, heightMils: 1730);
|
||||||
|
|
||||||
///ISO C0 media size: 917mm x 1297mm (36.10" x 51.06")
|
///ISO C0 media size: 917mm x 1297mm (36.10" x 51.06")
|
||||||
static const ISO_C0 = const PrintJobMediaSize_(
|
static const ISO_C0 = const PrintJobMediaSize_(
|
||||||
|
@ -151,8 +151,8 @@ class PrintJobMediaSize_ {
|
||||||
id: "ISO_C3", widthMils: 12760, heightMils: 18030);
|
id: "ISO_C3", widthMils: 12760, heightMils: 18030);
|
||||||
|
|
||||||
///ISO C4 media size: 229mm x 324mm (9.02" x 12.76")
|
///ISO C4 media size: 229mm x 324mm (9.02" x 12.76")
|
||||||
static const ISO_C4 =
|
static const ISO_C4 = const PrintJobMediaSize_(
|
||||||
const PrintJobMediaSize_(id: "ISO_C4", widthMils: 9020, heightMils: 12760);
|
id: "ISO_C4", widthMils: 9020, heightMils: 12760);
|
||||||
|
|
||||||
///ISO C5 media size: 162mm x 229mm (6.38" x 9.02")
|
///ISO C5 media size: 162mm x 229mm (6.38" x 9.02")
|
||||||
static const ISO_C5 =
|
static const ISO_C5 =
|
||||||
|
@ -175,8 +175,8 @@ class PrintJobMediaSize_ {
|
||||||
const PrintJobMediaSize_(id: "ISO_C9", widthMils: 1570, heightMils: 2240);
|
const PrintJobMediaSize_(id: "ISO_C9", widthMils: 1570, heightMils: 2240);
|
||||||
|
|
||||||
///ISO C10 media size: 28mm x 40mm (1.10" x 1.57")
|
///ISO C10 media size: 28mm x 40mm (1.10" x 1.57")
|
||||||
static const ISO_C10 =
|
static const ISO_C10 = const PrintJobMediaSize_(
|
||||||
const PrintJobMediaSize_(id: "ISO_C10", widthMils: 1100, heightMils: 1570);
|
id: "ISO_C10", widthMils: 1100, heightMils: 1570);
|
||||||
|
|
||||||
// North America
|
// North America
|
||||||
|
|
||||||
|
@ -323,8 +323,8 @@ class PrintJobMediaSize_ {
|
||||||
id: "PRC_10", widthMils: 12756, heightMils: 18032);
|
id: "PRC_10", widthMils: 12756, heightMils: 18032);
|
||||||
|
|
||||||
///Chinese PRC 16k media size: 146mm x 215mm (5.749" x 8.465")
|
///Chinese PRC 16k media size: 146mm x 215mm (5.749" x 8.465")
|
||||||
static const PRC_16K =
|
static const PRC_16K = const PrintJobMediaSize_(
|
||||||
const PrintJobMediaSize_(id: "PRC_16K", widthMils: 5749, heightMils: 8465);
|
id: "PRC_16K", widthMils: 5749, heightMils: 8465);
|
||||||
|
|
||||||
///Chinese Pa Kai media size: 267mm x 389mm (10.512" x 15.315")
|
///Chinese Pa Kai media size: 267mm x 389mm (10.512" x 15.315")
|
||||||
static const OM_PA_KAI = const PrintJobMediaSize_(
|
static const OM_PA_KAI = const PrintJobMediaSize_(
|
||||||
|
@ -341,8 +341,8 @@ class PrintJobMediaSize_ {
|
||||||
// Japanese
|
// Japanese
|
||||||
|
|
||||||
///Japanese JIS B10 media size: 32mm x 45mm (1.259" x 1.772")
|
///Japanese JIS B10 media size: 32mm x 45mm (1.259" x 1.772")
|
||||||
static const JIS_B10 =
|
static const JIS_B10 = const PrintJobMediaSize_(
|
||||||
const PrintJobMediaSize_(id: "JIS_B10", widthMils: 1259, heightMils: 1772);
|
id: "JIS_B10", widthMils: 1259, heightMils: 1772);
|
||||||
|
|
||||||
///Japanese JIS B9 media size: 45mm x 64mm (1.772" x 2.52")
|
///Japanese JIS B9 media size: 45mm x 64mm (1.772" x 2.52")
|
||||||
static const JIS_B9 =
|
static const JIS_B9 =
|
||||||
|
@ -361,8 +361,8 @@ class PrintJobMediaSize_ {
|
||||||
const PrintJobMediaSize_(id: "JIS_B6", widthMils: 5049, heightMils: 7165);
|
const PrintJobMediaSize_(id: "JIS_B6", widthMils: 5049, heightMils: 7165);
|
||||||
|
|
||||||
///Japanese JIS B5 media size: 182mm x 257mm (7.165" x 10.118")
|
///Japanese JIS B5 media size: 182mm x 257mm (7.165" x 10.118")
|
||||||
static const JIS_B5 =
|
static const JIS_B5 = const PrintJobMediaSize_(
|
||||||
const PrintJobMediaSize_(id: "JIS_B5", widthMils: 7165, heightMils: 10118);
|
id: "JIS_B5", widthMils: 7165, heightMils: 10118);
|
||||||
|
|
||||||
///Japanese JIS B4 media size: 257mm x 364mm (10.118" x 14.331")
|
///Japanese JIS B4 media size: 257mm x 364mm (10.118" x 14.331")
|
||||||
static const JIS_B4 = const PrintJobMediaSize_(
|
static const JIS_B4 = const PrintJobMediaSize_(
|
||||||
|
|
|
@ -18,9 +18,9 @@ class PrintJobState_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'PrintJobInfo.STATE_CREATED',
|
apiName: 'PrintJobInfo.STATE_CREATED',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_CREATED',
|
apiUrl:
|
||||||
value: 1
|
'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_CREATED',
|
||||||
),
|
value: 1),
|
||||||
EnumIOSPlatform(value: 1)
|
EnumIOSPlatform(value: 1)
|
||||||
])
|
])
|
||||||
static const CREATED = const PrintJobState_._internal(1);
|
static const CREATED = const PrintJobState_._internal(1);
|
||||||
|
@ -31,9 +31,9 @@ class PrintJobState_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'PrintJobInfo.STATE_QUEUED',
|
apiName: 'PrintJobInfo.STATE_QUEUED',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_QUEUED',
|
apiUrl:
|
||||||
value: 2
|
'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_QUEUED',
|
||||||
)
|
value: 2)
|
||||||
])
|
])
|
||||||
static const QUEUED = const PrintJobState_._internal(2);
|
static const QUEUED = const PrintJobState_._internal(2);
|
||||||
|
|
||||||
|
@ -43,9 +43,9 @@ class PrintJobState_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'PrintJobInfo.STATE_STARTED',
|
apiName: 'PrintJobInfo.STATE_STARTED',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_STARTED',
|
apiUrl:
|
||||||
value: 3
|
'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_STARTED',
|
||||||
),
|
value: 3),
|
||||||
EnumIOSPlatform(value: 3)
|
EnumIOSPlatform(value: 3)
|
||||||
])
|
])
|
||||||
static const STARTED = const PrintJobState_._internal(3);
|
static const STARTED = const PrintJobState_._internal(3);
|
||||||
|
@ -56,9 +56,9 @@ class PrintJobState_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'PrintJobInfo.STATE_BLOCKED',
|
apiName: 'PrintJobInfo.STATE_BLOCKED',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_BLOCKED',
|
apiUrl:
|
||||||
value: 4
|
'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_BLOCKED',
|
||||||
)
|
value: 4)
|
||||||
])
|
])
|
||||||
static const BLOCKED = const PrintJobState_._internal(4);
|
static const BLOCKED = const PrintJobState_._internal(4);
|
||||||
|
|
||||||
|
@ -68,23 +68,22 @@ class PrintJobState_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'PrintJobInfo.STATE_COMPLETED',
|
apiName: 'PrintJobInfo.STATE_COMPLETED',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_COMPLETED',
|
apiUrl:
|
||||||
value: 5
|
'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_COMPLETED',
|
||||||
),
|
value: 5),
|
||||||
EnumIOSPlatform(value: 5)
|
EnumIOSPlatform(value: 5)
|
||||||
])
|
])
|
||||||
static const COMPLETED = const PrintJobState_._internal(5);
|
static const COMPLETED = const PrintJobState_._internal(5);
|
||||||
|
|
||||||
|
|
||||||
///Print job state: The print job was printing but printing failed.
|
///Print job state: The print job was printing but printing failed.
|
||||||
///
|
///
|
||||||
///Next valid states: None.
|
///Next valid states: None.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'PrintJobInfo.STATE_FAILED',
|
apiName: 'PrintJobInfo.STATE_FAILED',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_FAILED',
|
apiUrl:
|
||||||
value: 6
|
'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_FAILED',
|
||||||
),
|
value: 6),
|
||||||
EnumIOSPlatform(value: 6)
|
EnumIOSPlatform(value: 6)
|
||||||
])
|
])
|
||||||
static const FAILED = const PrintJobState_._internal(6);
|
static const FAILED = const PrintJobState_._internal(6);
|
||||||
|
@ -95,9 +94,9 @@ class PrintJobState_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'PrintJobInfo.STATE_CANCELED',
|
apiName: 'PrintJobInfo.STATE_CANCELED',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_CANCELED',
|
apiUrl:
|
||||||
value: 7
|
'https://developer.android.com/reference/android/print/PrintJobInfo#STATE_CANCELED',
|
||||||
),
|
value: 7),
|
||||||
EnumIOSPlatform(value: 7)
|
EnumIOSPlatform(value: 7)
|
||||||
])
|
])
|
||||||
static const CANCELED = const PrintJobState_._internal(7);
|
static const CANCELED = const PrintJobState_._internal(7);
|
||||||
|
|
|
@ -18,6 +18,5 @@ class ProxySchemeFilter_ {
|
||||||
static const MATCH_HTTP = const ProxySchemeFilter_._internal("http");
|
static const MATCH_HTTP = const ProxySchemeFilter_._internal("http");
|
||||||
|
|
||||||
///HTTPS scheme.
|
///HTTPS scheme.
|
||||||
static const MATCH_HTTPS =
|
static const MATCH_HTTPS = const ProxySchemeFilter_._internal("https");
|
||||||
const ProxySchemeFilter_._internal("https");
|
|
||||||
}
|
}
|
|
@ -16,7 +16,8 @@ class Sandbox_ {
|
||||||
return Sandbox._NONE;
|
return Sandbox._NONE;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
return Sandbox.values.firstWhere((element) => element.toNativeValue() == value);
|
return Sandbox.values
|
||||||
|
.firstWhere((element) => element.toNativeValue() == value);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -41,10 +42,8 @@ class Sandbox_ {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() {
|
String toString() {
|
||||||
if (_value == null)
|
if (_value == null) return 'allow-all';
|
||||||
return 'allow-all';
|
if (_value == '') return 'allow-none';
|
||||||
if (_value == '')
|
|
||||||
return 'allow-none';
|
|
||||||
return _value ?? '';
|
return _value ?? '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,7 +90,8 @@ class Sandbox_ {
|
||||||
|
|
||||||
///If this token is not used, the resource is treated as being from a special origin that always fails the
|
///If this token is not used, the resource is treated as being from a special origin that always fails the
|
||||||
///same-origin policy (potentially preventing access to data storage/cookies and some JavaScript APIs).
|
///same-origin policy (potentially preventing access to data storage/cookies and some JavaScript APIs).
|
||||||
static const ALLOW_SAME_ORIGIN = const Sandbox_._internal("allow-same-origin");
|
static const ALLOW_SAME_ORIGIN =
|
||||||
|
const Sandbox_._internal("allow-same-origin");
|
||||||
|
|
||||||
///Lets the resource run scripts (but not create popup windows).
|
///Lets the resource run scripts (but not create popup windows).
|
||||||
static const ALLOW_SCRIPTS = const Sandbox_._internal("allow-scripts");
|
static const ALLOW_SCRIPTS = const Sandbox_._internal("allow-scripts");
|
||||||
|
|
|
@ -12,5 +12,6 @@ class ServerTrustAuthResponse_ {
|
||||||
///Indicate the [ServerTrustAuthResponseAction] to take in response of the server trust authentication challenge.
|
///Indicate the [ServerTrustAuthResponseAction] to take in response of the server trust authentication challenge.
|
||||||
ServerTrustAuthResponseAction_? action;
|
ServerTrustAuthResponseAction_? action;
|
||||||
|
|
||||||
ServerTrustAuthResponse_({this.action = ServerTrustAuthResponseAction_.CANCEL});
|
ServerTrustAuthResponse_(
|
||||||
|
{this.action = ServerTrustAuthResponseAction_.CANCEL});
|
||||||
}
|
}
|
|
@ -20,9 +20,9 @@ class SslErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'SslError.SSL_NOTYETVALID',
|
apiName: 'SslError.SSL_NOTYETVALID',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/net/http/SslError#SSL_NOTYETVALID',
|
apiUrl:
|
||||||
value: 0
|
'https://developer.android.com/reference/android/net/http/SslError#SSL_NOTYETVALID',
|
||||||
)
|
value: 0)
|
||||||
])
|
])
|
||||||
static const NOT_YET_VALID = SslErrorType_._internal('NOT_YET_VALID');
|
static const NOT_YET_VALID = SslErrorType_._internal('NOT_YET_VALID');
|
||||||
|
|
||||||
|
@ -30,9 +30,9 @@ class SslErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'SslError.SSL_EXPIRED',
|
apiName: 'SslError.SSL_EXPIRED',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/net/http/SslError#SSL_EXPIRED',
|
apiUrl:
|
||||||
value: 1
|
'https://developer.android.com/reference/android/net/http/SslError#SSL_EXPIRED',
|
||||||
)
|
value: 1)
|
||||||
])
|
])
|
||||||
static const EXPIRED = SslErrorType_._internal('EXPIRED');
|
static const EXPIRED = SslErrorType_._internal('EXPIRED');
|
||||||
|
|
||||||
|
@ -40,9 +40,9 @@ class SslErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'SslError.SSL_IDMISMATCH',
|
apiName: 'SslError.SSL_IDMISMATCH',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/net/http/SslError#SSL_IDMISMATCH',
|
apiUrl:
|
||||||
value: 2
|
'https://developer.android.com/reference/android/net/http/SslError#SSL_IDMISMATCH',
|
||||||
)
|
value: 2)
|
||||||
])
|
])
|
||||||
static const IDMISMATCH = SslErrorType_._internal('IDMISMATCH');
|
static const IDMISMATCH = SslErrorType_._internal('IDMISMATCH');
|
||||||
|
|
||||||
|
@ -50,9 +50,9 @@ class SslErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'SslError.SSL_UNTRUSTED',
|
apiName: 'SslError.SSL_UNTRUSTED',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/net/http/SslError#SSL_UNTRUSTED',
|
apiUrl:
|
||||||
value: 3
|
'https://developer.android.com/reference/android/net/http/SslError#SSL_UNTRUSTED',
|
||||||
)
|
value: 3)
|
||||||
])
|
])
|
||||||
static const UNTRUSTED = SslErrorType_._internal('UNTRUSTED');
|
static const UNTRUSTED = SslErrorType_._internal('UNTRUSTED');
|
||||||
|
|
||||||
|
@ -60,9 +60,9 @@ class SslErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'SslError.DATE_INVALID',
|
apiName: 'SslError.DATE_INVALID',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/net/http/SslError#SSL_DATE_INVALID',
|
apiUrl:
|
||||||
value: 4
|
'https://developer.android.com/reference/android/net/http/SslError#SSL_DATE_INVALID',
|
||||||
)
|
value: 4)
|
||||||
])
|
])
|
||||||
static const DATE_INVALID = SslErrorType_._internal('DATE_INVALID');
|
static const DATE_INVALID = SslErrorType_._internal('DATE_INVALID');
|
||||||
|
|
||||||
|
@ -70,14 +70,14 @@ class SslErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'SslError.SSL_INVALID',
|
apiName: 'SslError.SSL_INVALID',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/net/http/SslError#SSL_INVALID',
|
apiUrl:
|
||||||
value: 5
|
'https://developer.android.com/reference/android/net/http/SslError#SSL_INVALID',
|
||||||
),
|
value: 5),
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'SecTrustResultType.invalid',
|
apiName: 'SecTrustResultType.invalid',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/security/sectrustresulttype/invalid',
|
apiUrl:
|
||||||
value: 0
|
'https://developer.apple.com/documentation/security/sectrustresulttype/invalid',
|
||||||
)
|
value: 0)
|
||||||
])
|
])
|
||||||
static const INVALID = SslErrorType_._internal('INVALID');
|
static const INVALID = SslErrorType_._internal('INVALID');
|
||||||
|
|
||||||
|
@ -90,9 +90,9 @@ class SslErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'SecTrustResultType.deny',
|
apiName: 'SecTrustResultType.deny',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/security/sectrustresulttype/deny',
|
apiUrl:
|
||||||
value: 3
|
'https://developer.apple.com/documentation/security/sectrustresulttype/deny',
|
||||||
)
|
value: 3)
|
||||||
])
|
])
|
||||||
static const DENY = SslErrorType_._internal('DENY');
|
static const DENY = SslErrorType_._internal('DENY');
|
||||||
|
|
||||||
|
@ -107,9 +107,9 @@ class SslErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'SecTrustResultType.unspecified',
|
apiName: 'SecTrustResultType.unspecified',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/security/sectrustresulttype/unspecified',
|
apiUrl:
|
||||||
value: 4
|
'https://developer.apple.com/documentation/security/sectrustresulttype/unspecified',
|
||||||
)
|
value: 4)
|
||||||
])
|
])
|
||||||
static const UNSPECIFIED = SslErrorType_._internal('UNSPECIFIED');
|
static const UNSPECIFIED = SslErrorType_._internal('UNSPECIFIED');
|
||||||
|
|
||||||
|
@ -125,11 +125,12 @@ class SslErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'SecTrustResultType.recoverableTrustFailure',
|
apiName: 'SecTrustResultType.recoverableTrustFailure',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/security/sectrustresulttype/recoverabletrustfailure',
|
apiUrl:
|
||||||
value: 5
|
'https://developer.apple.com/documentation/security/sectrustresulttype/recoverabletrustfailure',
|
||||||
)
|
value: 5)
|
||||||
])
|
])
|
||||||
static const RECOVERABLE_TRUST_FAILURE = SslErrorType_._internal('RECOVERABLE_TRUST_FAILURE');
|
static const RECOVERABLE_TRUST_FAILURE =
|
||||||
|
SslErrorType_._internal('RECOVERABLE_TRUST_FAILURE');
|
||||||
|
|
||||||
///Trust is denied and no simple fix is available.
|
///Trust is denied and no simple fix is available.
|
||||||
///
|
///
|
||||||
|
@ -140,11 +141,12 @@ class SslErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'SecTrustResultType.fatalTrustFailure',
|
apiName: 'SecTrustResultType.fatalTrustFailure',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/security/sectrustresulttype/fataltrustfailure',
|
apiUrl:
|
||||||
value: 6
|
'https://developer.apple.com/documentation/security/sectrustresulttype/fataltrustfailure',
|
||||||
)
|
value: 6)
|
||||||
])
|
])
|
||||||
static const FATAL_TRUST_FAILURE = SslErrorType_._internal('FATAL_TRUST_FAILURE');
|
static const FATAL_TRUST_FAILURE =
|
||||||
|
SslErrorType_._internal('FATAL_TRUST_FAILURE');
|
||||||
|
|
||||||
///Indicates a failure other than that of trust evaluation.
|
///Indicates a failure other than that of trust evaluation.
|
||||||
///
|
///
|
||||||
|
@ -153,9 +155,9 @@ class SslErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'SecTrustResultType.otherError',
|
apiName: 'SecTrustResultType.otherError',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/security/sectrustresulttype/othererror',
|
apiUrl:
|
||||||
value: 7
|
'https://developer.apple.com/documentation/security/sectrustresulttype/othererror',
|
||||||
)
|
value: 7)
|
||||||
])
|
])
|
||||||
static const OTHER_ERROR = SslErrorType_._internal('OTHER_ERROR');
|
static const OTHER_ERROR = SslErrorType_._internal('OTHER_ERROR');
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,4 @@ part 'trusted_web_activity_display_mode.g.dart';
|
||||||
|
|
||||||
///Class that represents display mode of a Trusted Web Activity.
|
///Class that represents display mode of a Trusted Web Activity.
|
||||||
@ExchangeableObject(fromMapFactory: false)
|
@ExchangeableObject(fromMapFactory: false)
|
||||||
abstract class TrustedWebActivityDisplayMode_ {
|
abstract class TrustedWebActivityDisplayMode_ {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -12,7 +12,8 @@ class TrustedWebActivityScreenOrientation_ {
|
||||||
|
|
||||||
/// The default screen orientation is the set of orientations to which the screen is locked when
|
/// The default screen orientation is the set of orientations to which the screen is locked when
|
||||||
/// there is no current orientation lock.
|
/// there is no current orientation lock.
|
||||||
static const DEFAULT = const TrustedWebActivityScreenOrientation_._internal(0);
|
static const DEFAULT =
|
||||||
|
const TrustedWebActivityScreenOrientation_._internal(0);
|
||||||
|
|
||||||
/// Portrait-primary is an orientation where the screen width is less than or equal to the
|
/// Portrait-primary is an orientation where the screen width is less than or equal to the
|
||||||
/// screen height. If the device's natural orientation is portrait, then it is in
|
/// screen height. If the device's natural orientation is portrait, then it is in
|
||||||
|
@ -57,5 +58,6 @@ class TrustedWebActivityScreenOrientation_ {
|
||||||
/// Natural is an orientation that refers to either portrait-primary or landscape-primary
|
/// Natural is an orientation that refers to either portrait-primary or landscape-primary
|
||||||
/// depending on the device's usual orientation. This orientation is usually provided by
|
/// depending on the device's usual orientation. This orientation is usually provided by
|
||||||
/// the underlying operating system.
|
/// the underlying operating system.
|
||||||
static const NATURAL = const TrustedWebActivityScreenOrientation_._internal(8);
|
static const NATURAL =
|
||||||
|
const TrustedWebActivityScreenOrientation_._internal(8);
|
||||||
}
|
}
|
|
@ -68,7 +68,8 @@ class IOSNSUnderlineStyle_ {
|
||||||
static const PATTERN_DASH_DOT = const IOSNSUnderlineStyle_._internal(768);
|
static const PATTERN_DASH_DOT = const IOSNSUnderlineStyle_._internal(768);
|
||||||
|
|
||||||
///Draw a line of alternating dashes and two dots.
|
///Draw a line of alternating dashes and two dots.
|
||||||
static const PATTERN_DASH_DOT_DOT = const IOSNSUnderlineStyle_._internal(1024);
|
static const PATTERN_DASH_DOT_DOT =
|
||||||
|
const IOSNSUnderlineStyle_._internal(1024);
|
||||||
|
|
||||||
///Draw the line only beneath or through words, not whitespace.
|
///Draw the line only beneath or through words, not whitespace.
|
||||||
static const BY_WORD = const IOSNSUnderlineStyle_._internal(32768);
|
static const BY_WORD = const IOSNSUnderlineStyle_._internal(32768);
|
||||||
|
|
|
@ -11,8 +11,7 @@ List<X509Certificate>? _certificatesDeserializer(dynamic value) {
|
||||||
List<X509Certificate>? certificates;
|
List<X509Certificate>? certificates;
|
||||||
if (value != null) {
|
if (value != null) {
|
||||||
certificates = <X509Certificate>[];
|
certificates = <X509Certificate>[];
|
||||||
(value.cast<Uint8List>() as List<Uint8List>)
|
(value.cast<Uint8List>() as List<Uint8List>).forEach((data) {
|
||||||
.forEach((data) {
|
|
||||||
try {
|
try {
|
||||||
certificates!.add(X509Certificate.fromData(data: data));
|
certificates!.add(X509Certificate.fromData(data: data));
|
||||||
} catch (e, stacktrace) {
|
} catch (e, stacktrace) {
|
||||||
|
@ -41,11 +40,7 @@ class URLCredential_ {
|
||||||
|
|
||||||
///The intermediate certificates of the credential, if it is a client certificate credential.
|
///The intermediate certificates of the credential, if it is a client certificate credential.
|
||||||
@ExchangeableObjectProperty(deserializer: _certificatesDeserializer)
|
@ExchangeableObjectProperty(deserializer: _certificatesDeserializer)
|
||||||
@SupportedPlatforms(
|
@SupportedPlatforms(platforms: [IOSPlatform()])
|
||||||
platforms: [
|
|
||||||
IOSPlatform()
|
|
||||||
]
|
|
||||||
)
|
|
||||||
List<X509Certificate>? certificates;
|
List<X509Certificate>? certificates;
|
||||||
|
|
||||||
///Use [persistence] instead.
|
///Use [persistence] instead.
|
||||||
|
@ -53,11 +48,7 @@ class URLCredential_ {
|
||||||
IOSURLCredentialPersistence_? iosPersistence;
|
IOSURLCredentialPersistence_? iosPersistence;
|
||||||
|
|
||||||
///The credential’s persistence setting.
|
///The credential’s persistence setting.
|
||||||
@SupportedPlatforms(
|
@SupportedPlatforms(platforms: [IOSPlatform()])
|
||||||
platforms: [
|
|
||||||
IOSPlatform()
|
|
||||||
]
|
|
||||||
)
|
|
||||||
URLCredentialPersistence_? persistence;
|
URLCredentialPersistence_? persistence;
|
||||||
|
|
||||||
URLCredential_(
|
URLCredential_(
|
||||||
|
|
|
@ -14,8 +14,7 @@ List<X509Certificate>? _distinguishedNamesDeserializer(dynamic value) {
|
||||||
List<X509Certificate>? distinguishedNames;
|
List<X509Certificate>? distinguishedNames;
|
||||||
if (value != null) {
|
if (value != null) {
|
||||||
distinguishedNames = <X509Certificate>[];
|
distinguishedNames = <X509Certificate>[];
|
||||||
(value.cast<Uint8List>() as List<Uint8List>)
|
(value.cast<Uint8List>() as List<Uint8List>).forEach((data) {
|
||||||
.forEach((data) {
|
|
||||||
try {
|
try {
|
||||||
distinguishedNames!.add(X509Certificate.fromData(data: data));
|
distinguishedNames!.add(X509Certificate.fromData(data: data));
|
||||||
} catch (e, stacktrace) {
|
} catch (e, stacktrace) {
|
||||||
|
@ -58,29 +57,25 @@ class URLProtectionSpace_ {
|
||||||
@SupportedPlatforms(platforms: [
|
@SupportedPlatforms(platforms: [
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
apiName: "URLProtectionSpace.authenticationMethod",
|
apiName: "URLProtectionSpace.authenticationMethod",
|
||||||
apiUrl: "https://developer.apple.com/documentation/foundation/urlprotectionspace/1415028-authenticationmethod"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/foundation/urlprotectionspace/1415028-authenticationmethod")
|
||||||
])
|
])
|
||||||
URLProtectionSpaceAuthenticationMethod_? authenticationMethod;
|
URLProtectionSpaceAuthenticationMethod_? authenticationMethod;
|
||||||
|
|
||||||
///Use [distinguishedNames] instead.
|
///Use [distinguishedNames] instead.
|
||||||
@Deprecated("Use distinguishedNames instead")
|
@Deprecated("Use distinguishedNames instead")
|
||||||
@ExchangeableObjectProperty(
|
@ExchangeableObjectProperty(deserializer: _distinguishedNamesDeserializer)
|
||||||
deserializer: _distinguishedNamesDeserializer
|
|
||||||
)
|
|
||||||
List<X509Certificate>? iosDistinguishedNames;
|
List<X509Certificate>? iosDistinguishedNames;
|
||||||
|
|
||||||
///The acceptable certificate-issuing authorities for client certificate authentication.
|
///The acceptable certificate-issuing authorities for client certificate authentication.
|
||||||
///This value is `null` if the authentication method of the protection space is not client certificate.
|
///This value is `null` if the authentication method of the protection space is not client certificate.
|
||||||
///The returned issuing authorities are encoded with Distinguished Encoding Rules (DER).
|
///The returned issuing authorities are encoded with Distinguished Encoding Rules (DER).
|
||||||
@ExchangeableObjectProperty(
|
@ExchangeableObjectProperty(deserializer: _distinguishedNamesDeserializer)
|
||||||
deserializer: _distinguishedNamesDeserializer
|
|
||||||
)
|
|
||||||
@SupportedPlatforms(platforms: [
|
@SupportedPlatforms(platforms: [
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
apiName: "URLProtectionSpace.distinguishedNames",
|
apiName: "URLProtectionSpace.distinguishedNames",
|
||||||
apiUrl: "https://developer.apple.com/documentation/foundation/urlprotectionspace/1417061-distinguishednames"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/foundation/urlprotectionspace/1417061-distinguishednames")
|
||||||
])
|
])
|
||||||
List<X509Certificate>? distinguishedNames;
|
List<X509Certificate>? distinguishedNames;
|
||||||
|
|
||||||
|
@ -93,8 +88,8 @@ class URLProtectionSpace_ {
|
||||||
@SupportedPlatforms(platforms: [
|
@SupportedPlatforms(platforms: [
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
apiName: "URLProtectionSpace.receivesCredentialSecurely",
|
apiName: "URLProtectionSpace.receivesCredentialSecurely",
|
||||||
apiUrl: "https://developer.apple.com/documentation/foundation/urlprotectionspace/1415176-receivescredentialsecurely"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/foundation/urlprotectionspace/1415176-receivescredentialsecurely")
|
||||||
])
|
])
|
||||||
bool? receivesCredentialSecurely;
|
bool? receivesCredentialSecurely;
|
||||||
|
|
||||||
|
@ -108,8 +103,8 @@ class URLProtectionSpace_ {
|
||||||
@SupportedPlatforms(platforms: [
|
@SupportedPlatforms(platforms: [
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
apiName: "URLProtectionSpace.proxyType",
|
apiName: "URLProtectionSpace.proxyType",
|
||||||
apiUrl: "https://developer.apple.com/documentation/foundation/urlprotectionspace/1411924-proxytype"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/foundation/urlprotectionspace/1411924-proxytype")
|
||||||
])
|
])
|
||||||
URLProtectionSpaceProxyType_? proxyType;
|
URLProtectionSpaceProxyType_? proxyType;
|
||||||
|
|
||||||
|
|
|
@ -32,8 +32,8 @@ class URLRequest_ {
|
||||||
@SupportedPlatforms(platforms: [
|
@SupportedPlatforms(platforms: [
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
apiName: "URLRequest.allowsCellularAccess",
|
apiName: "URLRequest.allowsCellularAccess",
|
||||||
apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/2011607-allowscellularaccess/"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/foundation/urlrequest/2011607-allowscellularaccess/")
|
||||||
])
|
])
|
||||||
bool? allowsCellularAccess;
|
bool? allowsCellularAccess;
|
||||||
|
|
||||||
|
@ -46,8 +46,8 @@ class URLRequest_ {
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
available: "13.0",
|
available: "13.0",
|
||||||
apiName: "URLRequest.allowsConstrainedNetworkAccess",
|
apiName: "URLRequest.allowsConstrainedNetworkAccess",
|
||||||
apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/3358304-allowsconstrainednetworkaccess"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/foundation/urlrequest/3358304-allowsconstrainednetworkaccess")
|
||||||
])
|
])
|
||||||
bool? allowsConstrainedNetworkAccess;
|
bool? allowsConstrainedNetworkAccess;
|
||||||
|
|
||||||
|
@ -60,8 +60,8 @@ class URLRequest_ {
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
available: "13.0",
|
available: "13.0",
|
||||||
apiName: "URLRequest.allowsExpensiveNetworkAccess",
|
apiName: "URLRequest.allowsExpensiveNetworkAccess",
|
||||||
apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/3358305-allowsexpensivenetworkaccess"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/foundation/urlrequest/3358305-allowsexpensivenetworkaccess")
|
||||||
])
|
])
|
||||||
bool? allowsExpensiveNetworkAccess;
|
bool? allowsExpensiveNetworkAccess;
|
||||||
|
|
||||||
|
@ -73,8 +73,8 @@ class URLRequest_ {
|
||||||
@SupportedPlatforms(platforms: [
|
@SupportedPlatforms(platforms: [
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
apiName: "URLRequest.cachePolicy",
|
apiName: "URLRequest.cachePolicy",
|
||||||
apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/2011593-cachepolicy"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/foundation/urlrequest/2011593-cachepolicy")
|
||||||
])
|
])
|
||||||
URLRequestCachePolicy_? cachePolicy;
|
URLRequestCachePolicy_? cachePolicy;
|
||||||
|
|
||||||
|
@ -86,8 +86,8 @@ class URLRequest_ {
|
||||||
@SupportedPlatforms(platforms: [
|
@SupportedPlatforms(platforms: [
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
apiName: "URLRequest.httpShouldHandleCookies",
|
apiName: "URLRequest.httpShouldHandleCookies",
|
||||||
apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/2011548-httpshouldhandlecookies"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/foundation/urlrequest/2011548-httpshouldhandlecookies")
|
||||||
])
|
])
|
||||||
bool? httpShouldHandleCookies;
|
bool? httpShouldHandleCookies;
|
||||||
|
|
||||||
|
@ -99,8 +99,8 @@ class URLRequest_ {
|
||||||
@SupportedPlatforms(platforms: [
|
@SupportedPlatforms(platforms: [
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
apiName: "URLRequest.httpShouldUsePipelining",
|
apiName: "URLRequest.httpShouldUsePipelining",
|
||||||
apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/2011508-httpshouldusepipelining"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/foundation/urlrequest/2011508-httpshouldusepipelining")
|
||||||
])
|
])
|
||||||
bool? httpShouldUsePipelining;
|
bool? httpShouldUsePipelining;
|
||||||
|
|
||||||
|
@ -112,8 +112,8 @@ class URLRequest_ {
|
||||||
@SupportedPlatforms(platforms: [
|
@SupportedPlatforms(platforms: [
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
apiName: "URLRequest.networkServiceType",
|
apiName: "URLRequest.networkServiceType",
|
||||||
apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/foundation/urlrequest/2011409-networkservicetype")
|
||||||
])
|
])
|
||||||
URLRequestNetworkServiceType_? networkServiceType;
|
URLRequestNetworkServiceType_? networkServiceType;
|
||||||
|
|
||||||
|
@ -125,8 +125,8 @@ class URLRequest_ {
|
||||||
@SupportedPlatforms(platforms: [
|
@SupportedPlatforms(platforms: [
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
apiName: "URLRequest.timeoutInterval",
|
apiName: "URLRequest.timeoutInterval",
|
||||||
apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/2011509-timeoutinterval"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/foundation/urlrequest/2011509-timeoutinterval")
|
||||||
])
|
])
|
||||||
double? timeoutInterval;
|
double? timeoutInterval;
|
||||||
|
|
||||||
|
@ -139,8 +139,8 @@ class URLRequest_ {
|
||||||
@SupportedPlatforms(platforms: [
|
@SupportedPlatforms(platforms: [
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
apiName: "URLRequest.mainDocumentURL",
|
apiName: "URLRequest.mainDocumentURL",
|
||||||
apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/2011552-maindocumenturl"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/foundation/urlrequest/2011552-maindocumenturl")
|
||||||
])
|
])
|
||||||
Uri? mainDocumentURL;
|
Uri? mainDocumentURL;
|
||||||
|
|
||||||
|
@ -151,8 +151,8 @@ class URLRequest_ {
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
available: "14.5",
|
available: "14.5",
|
||||||
apiName: "URLRequest.assumesHTTP3Capable",
|
apiName: "URLRequest.assumesHTTP3Capable",
|
||||||
apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/3738175-assumeshttp3capable"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/foundation/urlrequest/3738175-assumeshttp3capable")
|
||||||
])
|
])
|
||||||
bool? assumesHTTP3Capable;
|
bool? assumesHTTP3Capable;
|
||||||
|
|
||||||
|
@ -163,13 +163,13 @@ class URLRequest_ {
|
||||||
IOSPlatform(
|
IOSPlatform(
|
||||||
available: "15.0",
|
available: "15.0",
|
||||||
apiName: "URLRequest.attribution",
|
apiName: "URLRequest.attribution",
|
||||||
apiUrl: "https://developer.apple.com/documentation/foundation/urlrequest/3767318-attribution"
|
apiUrl:
|
||||||
)
|
"https://developer.apple.com/documentation/foundation/urlrequest/3767318-attribution")
|
||||||
])
|
])
|
||||||
URLRequestAttribution_? attribution;
|
URLRequestAttribution_? attribution;
|
||||||
|
|
||||||
URLRequest_({
|
URLRequest_(
|
||||||
required this.url,
|
{required this.url,
|
||||||
this.method,
|
this.method,
|
||||||
this.headers,
|
this.headers,
|
||||||
this.body,
|
this.body,
|
||||||
|
@ -182,7 +182,8 @@ class URLRequest_ {
|
||||||
@Deprecated("Use allowsExpensiveNetworkAccess instead")
|
@Deprecated("Use allowsExpensiveNetworkAccess instead")
|
||||||
this.iosAllowsExpensiveNetworkAccess,
|
this.iosAllowsExpensiveNetworkAccess,
|
||||||
this.allowsExpensiveNetworkAccess,
|
this.allowsExpensiveNetworkAccess,
|
||||||
@Deprecated("Use cachePolicy instead") this.iosCachePolicy,
|
@Deprecated("Use cachePolicy instead")
|
||||||
|
this.iosCachePolicy,
|
||||||
this.cachePolicy,
|
this.cachePolicy,
|
||||||
@Deprecated("Use httpShouldHandleCookies instead")
|
@Deprecated("Use httpShouldHandleCookies instead")
|
||||||
this.iosHttpShouldHandleCookies,
|
this.iosHttpShouldHandleCookies,
|
||||||
|
@ -190,13 +191,15 @@ class URLRequest_ {
|
||||||
@Deprecated("Use httpShouldUsePipelining instead")
|
@Deprecated("Use httpShouldUsePipelining instead")
|
||||||
this.iosHttpShouldUsePipelining,
|
this.iosHttpShouldUsePipelining,
|
||||||
this.httpShouldUsePipelining,
|
this.httpShouldUsePipelining,
|
||||||
@Deprecated("Use networkServiceType instead") this.iosNetworkServiceType,
|
@Deprecated("Use networkServiceType instead")
|
||||||
|
this.iosNetworkServiceType,
|
||||||
this.networkServiceType,
|
this.networkServiceType,
|
||||||
@Deprecated("Use timeoutInterval instead") this.iosTimeoutInterval,
|
@Deprecated("Use timeoutInterval instead")
|
||||||
|
this.iosTimeoutInterval,
|
||||||
this.timeoutInterval,
|
this.timeoutInterval,
|
||||||
@Deprecated("Use mainDocumentURL instead") this.iosMainDocumentURL,
|
@Deprecated("Use mainDocumentURL instead")
|
||||||
|
this.iosMainDocumentURL,
|
||||||
this.mainDocumentURL,
|
this.mainDocumentURL,
|
||||||
this.assumesHTTP3Capable,
|
this.assumesHTTP3Capable,
|
||||||
this.attribution
|
this.attribution});
|
||||||
});
|
|
||||||
}
|
}
|
|
@ -17,11 +17,9 @@ class URLRequestAttribution_ {
|
||||||
///This includes requests that your app makes to get user data. This is the default value.
|
///This includes requests that your app makes to get user data. This is the default value.
|
||||||
///
|
///
|
||||||
///For cases where the user enters a URL, like in the navigation bar of a web browser, or taps or clicks a URL to load the content it represents, use the [URLRequestAttribution.USER] value instead.
|
///For cases where the user enters a URL, like in the navigation bar of a web browser, or taps or clicks a URL to load the content it represents, use the [URLRequestAttribution.USER] value instead.
|
||||||
static const DEVELOPER =
|
static const DEVELOPER = const URLRequestAttribution_._internal(0);
|
||||||
const URLRequestAttribution_._internal(0);
|
|
||||||
|
|
||||||
///Use this value for the attribution parameter of a [URLRequest] that satisfies a user request to access an explicit, unmodified URL.
|
///Use this value for the attribution parameter of a [URLRequest] that satisfies a user request to access an explicit, unmodified URL.
|
||||||
///In all other cases, use the [URLRequestAttribution.DEVELOPER] value instead.
|
///In all other cases, use the [URLRequestAttribution.DEVELOPER] value instead.
|
||||||
static const USER =
|
static const USER = const URLRequestAttribution_._internal(1);
|
||||||
const URLRequestAttribution_._internal(1);
|
|
||||||
}
|
}
|
|
@ -48,8 +48,8 @@ class UserScript_ {
|
||||||
this.forMainFrameOnly = true,
|
this.forMainFrameOnly = true,
|
||||||
Set<String>? allowedOriginRules,
|
Set<String>? allowedOriginRules,
|
||||||
ContentWorld? contentWorld}) {
|
ContentWorld? contentWorld}) {
|
||||||
this.allowedOriginRules = allowedOriginRules != null ?
|
this.allowedOriginRules =
|
||||||
allowedOriginRules : Set.from(["*"]);
|
allowedOriginRules != null ? allowedOriginRules : Set.from(["*"]);
|
||||||
this.contentWorld = contentWorld ?? ContentWorld.PAGE;
|
this.contentWorld = contentWorld ?? ContentWorld.PAGE;
|
||||||
// ignore: deprecated_member_use_from_same_package
|
// ignore: deprecated_member_use_from_same_package
|
||||||
this.forMainFrameOnly = this.iosForMainFrameOnly != null
|
this.forMainFrameOnly = this.iosForMainFrameOnly != null
|
||||||
|
|
|
@ -13,8 +13,10 @@ class WebAuthenticationSessionError_ {
|
||||||
static const CANCELED_LOGIN = WebAuthenticationSessionError_._internal(1);
|
static const CANCELED_LOGIN = WebAuthenticationSessionError_._internal(1);
|
||||||
|
|
||||||
///A context wasn’t provided.
|
///A context wasn’t provided.
|
||||||
static const PRESENTATION_CONTEXT_NOT_PROVIDED = WebAuthenticationSessionError_._internal(2);
|
static const PRESENTATION_CONTEXT_NOT_PROVIDED =
|
||||||
|
WebAuthenticationSessionError_._internal(2);
|
||||||
|
|
||||||
///The context was invalid.
|
///The context was invalid.
|
||||||
static const PRESENTATION_CONTEXT_INVALID = WebAuthenticationSessionError_._internal(3);
|
static const PRESENTATION_CONTEXT_INVALID =
|
||||||
|
WebAuthenticationSessionError_._internal(3);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,24 +17,25 @@ class WebResourceErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'WebViewClient.ERROR_AUTHENTICATION',
|
apiName: 'WebViewClient.ERROR_AUTHENTICATION',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_AUTHENTICATION',
|
apiUrl:
|
||||||
value: -4
|
'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_AUTHENTICATION',
|
||||||
)
|
value: -4)
|
||||||
])
|
])
|
||||||
static const USER_AUTHENTICATION_FAILED = WebResourceErrorType_._internal("USER_AUTHENTICATION_FAILED");
|
static const USER_AUTHENTICATION_FAILED =
|
||||||
|
WebResourceErrorType_._internal("USER_AUTHENTICATION_FAILED");
|
||||||
|
|
||||||
///A malformed URL prevented a URL request from being initiated.
|
///A malformed URL prevented a URL request from being initiated.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'WebViewClient.ERROR_BAD_URL',
|
apiName: 'WebViewClient.ERROR_BAD_URL',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_BAD_URL',
|
apiUrl:
|
||||||
value: -12
|
'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_BAD_URL',
|
||||||
),
|
value: -12),
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.badURL',
|
apiName: 'URLError.badURL',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293516-badurl',
|
apiUrl:
|
||||||
value: -1000
|
'https://developer.apple.com/documentation/foundation/urlerror/2293516-badurl',
|
||||||
)
|
value: -1000)
|
||||||
])
|
])
|
||||||
static const BAD_URL = WebResourceErrorType_._internal("BAD_URL");
|
static const BAD_URL = WebResourceErrorType_._internal("BAD_URL");
|
||||||
|
|
||||||
|
@ -42,64 +43,68 @@ class WebResourceErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'WebViewClient.ERROR_CONNECT',
|
apiName: 'WebViewClient.ERROR_CONNECT',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_CONNECT',
|
apiUrl:
|
||||||
value: -6
|
'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_CONNECT',
|
||||||
),
|
value: -6),
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.cannotConnectToHost',
|
apiName: 'URLError.cannotConnectToHost',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883001-cannotconnecttohost',
|
apiUrl:
|
||||||
value: -1004
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883001-cannotconnecttohost',
|
||||||
)
|
value: -1004)
|
||||||
])
|
])
|
||||||
static const CANNOT_CONNECT_TO_HOST = WebResourceErrorType_._internal("CANNOT_CONNECT_TO_HOST");
|
static const CANNOT_CONNECT_TO_HOST =
|
||||||
|
WebResourceErrorType_._internal("CANNOT_CONNECT_TO_HOST");
|
||||||
|
|
||||||
///Failed to perform SSL handshake.
|
///Failed to perform SSL handshake.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'WebViewClient.ERROR_FAILED_SSL_HANDSHAKE',
|
apiName: 'WebViewClient.ERROR_FAILED_SSL_HANDSHAKE',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_FAILED_SSL_HANDSHAKE',
|
apiUrl:
|
||||||
value: -11
|
'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_FAILED_SSL_HANDSHAKE',
|
||||||
)
|
value: -11)
|
||||||
])
|
])
|
||||||
static const FAILED_SSL_HANDSHAKE = WebResourceErrorType_._internal("FAILED_SSL_HANDSHAKE");
|
static const FAILED_SSL_HANDSHAKE =
|
||||||
|
WebResourceErrorType_._internal("FAILED_SSL_HANDSHAKE");
|
||||||
|
|
||||||
///Generic file error.
|
///Generic file error.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'WebViewClient.ERROR_FILE',
|
apiName: 'WebViewClient.ERROR_FILE',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_FILE',
|
apiUrl:
|
||||||
value: -13
|
'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_FILE',
|
||||||
)
|
value: -13)
|
||||||
])
|
])
|
||||||
static const GENERIC_FILE_ERROR = WebResourceErrorType_._internal("GENERIC_FILE_ERROR");
|
static const GENERIC_FILE_ERROR =
|
||||||
|
WebResourceErrorType_._internal("GENERIC_FILE_ERROR");
|
||||||
|
|
||||||
///File not found.
|
///File not found.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'WebViewClient.ERROR_FILE_NOT_FOUND',
|
apiName: 'WebViewClient.ERROR_FILE_NOT_FOUND',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_FILE_NOT_FOUND',
|
apiUrl:
|
||||||
value: -14
|
'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_FILE_NOT_FOUND',
|
||||||
),
|
value: -14),
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.fileDoesNotExist',
|
apiName: 'URLError.fileDoesNotExist',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883074-filedoesnotexist',
|
apiUrl:
|
||||||
value: -1100
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883074-filedoesnotexist',
|
||||||
)
|
value: -1100)
|
||||||
])
|
])
|
||||||
static const FILE_NOT_FOUND = WebResourceErrorType_._internal("FILE_NOT_FOUND");
|
static const FILE_NOT_FOUND =
|
||||||
|
WebResourceErrorType_._internal("FILE_NOT_FOUND");
|
||||||
|
|
||||||
///Server or proxy hostname lookup failed.
|
///Server or proxy hostname lookup failed.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'WebViewClient.ERROR_HOST_LOOKUP',
|
apiName: 'WebViewClient.ERROR_HOST_LOOKUP',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_HOST_LOOKUP',
|
apiUrl:
|
||||||
value: -2
|
'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_HOST_LOOKUP',
|
||||||
),
|
value: -2),
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.cannotFindHost',
|
apiName: 'URLError.cannotFindHost',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883157-cannotfindhost',
|
apiUrl:
|
||||||
value: -1003
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883157-cannotfindhost',
|
||||||
)
|
value: -1003)
|
||||||
])
|
])
|
||||||
static const HOST_LOOKUP = WebResourceErrorType_._internal("HOST_LOOKUP");
|
static const HOST_LOOKUP = WebResourceErrorType_._internal("HOST_LOOKUP");
|
||||||
|
|
||||||
|
@ -107,9 +112,9 @@ class WebResourceErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'WebViewClient.ERROR_IO',
|
apiName: 'WebViewClient.ERROR_IO',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_IO',
|
apiUrl:
|
||||||
value: -7
|
'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_IO',
|
||||||
)
|
value: -7)
|
||||||
])
|
])
|
||||||
static const IO = WebResourceErrorType_._internal("IO");
|
static const IO = WebResourceErrorType_._internal("IO");
|
||||||
|
|
||||||
|
@ -117,39 +122,41 @@ class WebResourceErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'WebViewClient.ERROR_PROXY_AUTHENTICATION',
|
apiName: 'WebViewClient.ERROR_PROXY_AUTHENTICATION',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_PROXY_AUTHENTICATION',
|
apiUrl:
|
||||||
value: -5
|
'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_PROXY_AUTHENTICATION',
|
||||||
)
|
value: -5)
|
||||||
])
|
])
|
||||||
static const PROXY_AUTHENTICATION = WebResourceErrorType_._internal("PROXY_AUTHENTICATION");
|
static const PROXY_AUTHENTICATION =
|
||||||
|
WebResourceErrorType_._internal("PROXY_AUTHENTICATION");
|
||||||
|
|
||||||
///A redirect loop has been detected or the threshold for number of allowable redirects has been exceeded (currently `16` on iOS).
|
///A redirect loop has been detected or the threshold for number of allowable redirects has been exceeded (currently `16` on iOS).
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'WebViewClient.ERROR_REDIRECT_LOOP',
|
apiName: 'WebViewClient.ERROR_REDIRECT_LOOP',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_REDIRECT_LOOP',
|
apiUrl:
|
||||||
value: -9
|
'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_REDIRECT_LOOP',
|
||||||
),
|
value: -9),
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.httpTooManyRedirects',
|
apiName: 'URLError.httpTooManyRedirects',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883099-httptoomanyredirects',
|
apiUrl:
|
||||||
value: -1007
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883099-httptoomanyredirects',
|
||||||
)
|
value: -1007)
|
||||||
])
|
])
|
||||||
static const TOO_MANY_REDIRECTS = WebResourceErrorType_._internal("TOO_MANY_REDIRECTS");
|
static const TOO_MANY_REDIRECTS =
|
||||||
|
WebResourceErrorType_._internal("TOO_MANY_REDIRECTS");
|
||||||
|
|
||||||
///Connection timed out.
|
///Connection timed out.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'WebViewClient.ERROR_TIMEOUT',
|
apiName: 'WebViewClient.ERROR_TIMEOUT',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_TIMEOUT',
|
apiUrl:
|
||||||
value: -8
|
'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_TIMEOUT',
|
||||||
),
|
value: -8),
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.timedOut',
|
apiName: 'URLError.timedOut',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883027-timedout',
|
apiUrl:
|
||||||
value: -1001
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883027-timedout',
|
||||||
)
|
value: -1001)
|
||||||
])
|
])
|
||||||
static const TIMEOUT = WebResourceErrorType_._internal("TIMEOUT");
|
static const TIMEOUT = WebResourceErrorType_._internal("TIMEOUT");
|
||||||
|
|
||||||
|
@ -157,24 +164,25 @@ class WebResourceErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'WebViewClient.ERROR_TOO_MANY_REQUESTS',
|
apiName: 'WebViewClient.ERROR_TOO_MANY_REQUESTS',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_TOO_MANY_REQUESTS',
|
apiUrl:
|
||||||
value: -15
|
'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_TOO_MANY_REQUESTS',
|
||||||
)
|
value: -15)
|
||||||
])
|
])
|
||||||
static const TOO_MANY_REQUESTS = WebResourceErrorType_._internal("TOO_MANY_REQUESTS");
|
static const TOO_MANY_REQUESTS =
|
||||||
|
WebResourceErrorType_._internal("TOO_MANY_REQUESTS");
|
||||||
|
|
||||||
///The URL Loading System encountered an error that it can’t interpret.
|
///The URL Loading System encountered an error that it can’t interpret.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'WebViewClient.ERROR_UNKNOWN',
|
apiName: 'WebViewClient.ERROR_UNKNOWN',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_UNKNOWN',
|
apiUrl:
|
||||||
value: -1
|
'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_UNKNOWN',
|
||||||
),
|
value: -1),
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.unknown',
|
apiName: 'URLError.unknown',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293357-unknown',
|
apiUrl:
|
||||||
value: -1
|
'https://developer.apple.com/documentation/foundation/urlerror/2293357-unknown',
|
||||||
)
|
value: -1)
|
||||||
])
|
])
|
||||||
static const UNKNOWN = WebResourceErrorType_._internal("UNKNOWN");
|
static const UNKNOWN = WebResourceErrorType_._internal("UNKNOWN");
|
||||||
|
|
||||||
|
@ -182,45 +190,48 @@ class WebResourceErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'WebViewClient.ERROR_UNSAFE_RESOURCE',
|
apiName: 'WebViewClient.ERROR_UNSAFE_RESOURCE',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_UNSAFE_RESOURCE',
|
apiUrl:
|
||||||
value: -16
|
'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_UNSAFE_RESOURCE',
|
||||||
)
|
value: -16)
|
||||||
])
|
])
|
||||||
static const UNSAFE_RESOURCE = WebResourceErrorType_._internal("UNSAFE_RESOURCE");
|
static const UNSAFE_RESOURCE =
|
||||||
|
WebResourceErrorType_._internal("UNSAFE_RESOURCE");
|
||||||
|
|
||||||
///Unsupported authentication scheme (not basic or digest).
|
///Unsupported authentication scheme (not basic or digest).
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'WebViewClient.ERROR_UNSUPPORTED_AUTH_SCHEME',
|
apiName: 'WebViewClient.ERROR_UNSUPPORTED_AUTH_SCHEME',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_UNSUPPORTED_AUTH_SCHEME',
|
apiUrl:
|
||||||
value: -3
|
'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_UNSUPPORTED_AUTH_SCHEME',
|
||||||
)
|
value: -3)
|
||||||
])
|
])
|
||||||
static const UNSUPPORTED_AUTH_SCHEME = WebResourceErrorType_._internal("UNSUPPORTED_AUTH_SCHEME");
|
static const UNSUPPORTED_AUTH_SCHEME =
|
||||||
|
WebResourceErrorType_._internal("UNSUPPORTED_AUTH_SCHEME");
|
||||||
|
|
||||||
///Unsupported URI scheme.
|
///Unsupported URI scheme.
|
||||||
///Typically this occurs when there is no available protocol handler for the URL.
|
///Typically this occurs when there is no available protocol handler for the URL.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumAndroidPlatform(
|
EnumAndroidPlatform(
|
||||||
apiName: 'WebViewClient.ERROR_UNSUPPORTED_SCHEME',
|
apiName: 'WebViewClient.ERROR_UNSUPPORTED_SCHEME',
|
||||||
apiUrl: 'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_UNSUPPORTED_SCHEME',
|
apiUrl:
|
||||||
value: -10
|
'https://developer.android.com/reference/android/webkit/WebViewClient#ERROR_UNSUPPORTED_SCHEME',
|
||||||
),
|
value: -10),
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.unsupportedURL',
|
apiName: 'URLError.unsupportedURL',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883043-unsupportedurl',
|
apiUrl:
|
||||||
value: -1002
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883043-unsupportedurl',
|
||||||
)
|
value: -1002)
|
||||||
])
|
])
|
||||||
static const UNSUPPORTED_SCHEME = WebResourceErrorType_._internal("UNSUPPORTED_SCHEME");
|
static const UNSUPPORTED_SCHEME =
|
||||||
|
WebResourceErrorType_._internal("UNSUPPORTED_SCHEME");
|
||||||
|
|
||||||
///An asynchronous load has been canceled.
|
///An asynchronous load has been canceled.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.cancelled',
|
apiName: 'URLError.cancelled',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883178-cancelled',
|
apiUrl:
|
||||||
value: -999
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883178-cancelled',
|
||||||
)
|
value: -999)
|
||||||
])
|
])
|
||||||
static const CANCELLED = WebResourceErrorType_._internal("CANCELLED");
|
static const CANCELLED = WebResourceErrorType_._internal("CANCELLED");
|
||||||
|
|
||||||
|
@ -228,40 +239,43 @@ class WebResourceErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.networkConnectionLost',
|
apiName: 'URLError.networkConnectionLost',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293759-networkconnectionlost',
|
apiUrl:
|
||||||
value: -1005
|
'https://developer.apple.com/documentation/foundation/urlerror/2293759-networkconnectionlost',
|
||||||
)
|
value: -1005)
|
||||||
])
|
])
|
||||||
static const NETWORK_CONNECTION_LOST = WebResourceErrorType_._internal("NETWORK_CONNECTION_LOST");
|
static const NETWORK_CONNECTION_LOST =
|
||||||
|
WebResourceErrorType_._internal("NETWORK_CONNECTION_LOST");
|
||||||
|
|
||||||
///A requested resource couldn't be retrieved.
|
///A requested resource couldn't be retrieved.
|
||||||
///This error can indicate a file-not-found situation, or decoding problems that prevent data from being processed correctly.
|
///This error can indicate a file-not-found situation, or decoding problems that prevent data from being processed correctly.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.resourceUnavailable',
|
apiName: 'URLError.resourceUnavailable',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293555-resourceunavailable',
|
apiUrl:
|
||||||
value: -1008
|
'https://developer.apple.com/documentation/foundation/urlerror/2293555-resourceunavailable',
|
||||||
)
|
value: -1008)
|
||||||
])
|
])
|
||||||
static const RESOURCE_UNAVAILABLE = WebResourceErrorType_._internal("RESOURCE_UNAVAILABLE");
|
static const RESOURCE_UNAVAILABLE =
|
||||||
|
WebResourceErrorType_._internal("RESOURCE_UNAVAILABLE");
|
||||||
|
|
||||||
///A network resource was requested, but an internet connection hasn’t been established and can’t be established automatically.
|
///A network resource was requested, but an internet connection hasn’t been established and can’t be established automatically.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.notConnectedToInternet',
|
apiName: 'URLError.notConnectedToInternet',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293104-notconnectedtointernet',
|
apiUrl:
|
||||||
value: -1009
|
'https://developer.apple.com/documentation/foundation/urlerror/2293104-notconnectedtointernet',
|
||||||
)
|
value: -1009)
|
||||||
])
|
])
|
||||||
static const NOT_CONNECTED_TO_INTERNET = WebResourceErrorType_._internal("NOT_CONNECTED_TO_INTERNET");
|
static const NOT_CONNECTED_TO_INTERNET =
|
||||||
|
WebResourceErrorType_._internal("NOT_CONNECTED_TO_INTERNET");
|
||||||
|
|
||||||
///A redirect was specified by way of server response code, but the server didn’t accompany this code with a redirect URL.
|
///A redirect was specified by way of server response code, but the server didn’t accompany this code with a redirect URL.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.redirectToNonExistentLocation',
|
apiName: 'URLError.redirectToNonExistentLocation',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293066-redirecttononexistentlocation',
|
apiUrl:
|
||||||
value: -1010
|
'https://developer.apple.com/documentation/foundation/urlerror/2293066-redirecttononexistentlocation',
|
||||||
)
|
value: -1010)
|
||||||
])
|
])
|
||||||
static const REDIRECT_TO_NON_EXISTENT_LOCATION =
|
static const REDIRECT_TO_NON_EXISTENT_LOCATION =
|
||||||
WebResourceErrorType_._internal("REDIRECT_TO_NON_EXISTENT_LOCATION");
|
WebResourceErrorType_._internal("REDIRECT_TO_NON_EXISTENT_LOCATION");
|
||||||
|
@ -270,72 +284,79 @@ class WebResourceErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.badServerResponse',
|
apiName: 'URLError.badServerResponse',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293606-badserverresponse',
|
apiUrl:
|
||||||
value: -1011
|
'https://developer.apple.com/documentation/foundation/urlerror/2293606-badserverresponse',
|
||||||
)
|
value: -1011)
|
||||||
])
|
])
|
||||||
static const BAD_SERVER_RESPONSE = WebResourceErrorType_._internal("BAD_SERVER_RESPONSE");
|
static const BAD_SERVER_RESPONSE =
|
||||||
|
WebResourceErrorType_._internal("BAD_SERVER_RESPONSE");
|
||||||
|
|
||||||
///An asynchronous request for authentication has been canceled by the user.
|
///An asynchronous request for authentication has been canceled by the user.
|
||||||
///This error typically occurs when a user clicks a "Cancel" button in a username/password dialog, rather than attempting to authenticate.
|
///This error typically occurs when a user clicks a "Cancel" button in a username/password dialog, rather than attempting to authenticate.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.userCancelledAuthentication',
|
apiName: 'URLError.userCancelledAuthentication',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293330-usercancelledauthentication',
|
apiUrl:
|
||||||
value: -1012
|
'https://developer.apple.com/documentation/foundation/urlerror/2293330-usercancelledauthentication',
|
||||||
)
|
value: -1012)
|
||||||
])
|
])
|
||||||
static const USER_CANCELLED_AUTHENTICATION = WebResourceErrorType_._internal("USER_CANCELLED_AUTHENTICATION");
|
static const USER_CANCELLED_AUTHENTICATION =
|
||||||
|
WebResourceErrorType_._internal("USER_CANCELLED_AUTHENTICATION");
|
||||||
|
|
||||||
///Authentication is required to access a resource.
|
///Authentication is required to access a resource.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.userAuthenticationRequired',
|
apiName: 'URLError.userAuthenticationRequired',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293560-userauthenticationrequired',
|
apiUrl:
|
||||||
value: -1013
|
'https://developer.apple.com/documentation/foundation/urlerror/2293560-userauthenticationrequired',
|
||||||
)
|
value: -1013)
|
||||||
])
|
])
|
||||||
static const USER_AUTHENTICATION_REQUIRED = WebResourceErrorType_._internal("USER_AUTHENTICATION_REQUIRED");
|
static const USER_AUTHENTICATION_REQUIRED =
|
||||||
|
WebResourceErrorType_._internal("USER_AUTHENTICATION_REQUIRED");
|
||||||
|
|
||||||
///A server reported that a URL has a non-zero content length, but terminated the network connection gracefully without sending any data.
|
///A server reported that a URL has a non-zero content length, but terminated the network connection gracefully without sending any data.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.zeroByteResource',
|
apiName: 'URLError.zeroByteResource',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293773-zerobyteresource',
|
apiUrl:
|
||||||
value: -1014
|
'https://developer.apple.com/documentation/foundation/urlerror/2293773-zerobyteresource',
|
||||||
)
|
value: -1014)
|
||||||
])
|
])
|
||||||
static const ZERO_BYTE_RESOURCE = WebResourceErrorType_._internal("ZERO_BYTE_RESOURCE");
|
static const ZERO_BYTE_RESOURCE =
|
||||||
|
WebResourceErrorType_._internal("ZERO_BYTE_RESOURCE");
|
||||||
|
|
||||||
///Content data received during a connection request couldn’t be decoded for a known content encoding.
|
///Content data received during a connection request couldn’t be decoded for a known content encoding.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.cannotDecodeRawData',
|
apiName: 'URLError.cannotDecodeRawData',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2293573-cannotdecoderawdata',
|
apiUrl:
|
||||||
value: -1015
|
'https://developer.apple.com/documentation/foundation/urlerror/2293573-cannotdecoderawdata',
|
||||||
)
|
value: -1015)
|
||||||
])
|
])
|
||||||
static const CANNOT_DECODE_RAW_DATA = WebResourceErrorType_._internal("CANNOT_DECODE_RAW_DATA");
|
static const CANNOT_DECODE_RAW_DATA =
|
||||||
|
WebResourceErrorType_._internal("CANNOT_DECODE_RAW_DATA");
|
||||||
|
|
||||||
///Content data received during a connection request couldn’t be decoded for a known content encoding.
|
///Content data received during a connection request couldn’t be decoded for a known content encoding.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.cannotDecodeContentData',
|
apiName: 'URLError.cannotDecodeContentData',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/2292983-cannotdecodecontentdata',
|
apiUrl:
|
||||||
value: -1016
|
'https://developer.apple.com/documentation/foundation/urlerror/2292983-cannotdecodecontentdata',
|
||||||
)
|
value: -1016)
|
||||||
])
|
])
|
||||||
static const CANNOT_DECODE_CONTENT_DATA = WebResourceErrorType_._internal("CANNOT_DECODE_CONTENT_DATA");
|
static const CANNOT_DECODE_CONTENT_DATA =
|
||||||
|
WebResourceErrorType_._internal("CANNOT_DECODE_CONTENT_DATA");
|
||||||
|
|
||||||
///A task could not parse a response.
|
///A task could not parse a response.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.cannotParseResponse',
|
apiName: 'URLError.cannotParseResponse',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2882919-cannotparseresponse',
|
apiUrl:
|
||||||
value: -1017
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2882919-cannotparseresponse',
|
||||||
)
|
value: -1017)
|
||||||
])
|
])
|
||||||
static const CANNOT_PARSE_RESPONSE = WebResourceErrorType_._internal("CANNOT_PARSE_RESPONSE");
|
static const CANNOT_PARSE_RESPONSE =
|
||||||
|
WebResourceErrorType_._internal("CANNOT_PARSE_RESPONSE");
|
||||||
|
|
||||||
///App Transport Security disallowed a connection because there is no secure network connection.
|
///App Transport Security disallowed a connection because there is no secure network connection.
|
||||||
///
|
///
|
||||||
|
@ -344,72 +365,79 @@ class WebResourceErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.appTransportSecurityRequiresSecureConnection',
|
apiName: 'URLError.appTransportSecurityRequiresSecureConnection',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2882980-apptransportsecurityrequiressecu',
|
apiUrl:
|
||||||
value: -1022
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2882980-apptransportsecurityrequiressecu',
|
||||||
)
|
value: -1022)
|
||||||
])
|
])
|
||||||
static const APP_TRANSPORT_SECURITY_REQUIRES_SECURE_CONNECTION =
|
static const APP_TRANSPORT_SECURITY_REQUIRES_SECURE_CONNECTION =
|
||||||
WebResourceErrorType_._internal("APP_TRANSPORT_SECURITY_REQUIRES_SECURE_CONNECTION");
|
WebResourceErrorType_._internal(
|
||||||
|
"APP_TRANSPORT_SECURITY_REQUIRES_SECURE_CONNECTION");
|
||||||
|
|
||||||
///A request for an FTP file resulted in the server responding that the file is not a plain file, but a directory.
|
///A request for an FTP file resulted in the server responding that the file is not a plain file, but a directory.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.fileIsDirectory',
|
apiName: 'URLError.fileIsDirectory',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883220-fileisdirectory',
|
apiUrl:
|
||||||
value: -1101
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883220-fileisdirectory',
|
||||||
)
|
value: -1101)
|
||||||
])
|
])
|
||||||
static const FILE_IS_DIRECTORY = WebResourceErrorType_._internal("FILE_IS_DIRECTORY");
|
static const FILE_IS_DIRECTORY =
|
||||||
|
WebResourceErrorType_._internal("FILE_IS_DIRECTORY");
|
||||||
|
|
||||||
///A resource couldn’t be read because of insufficient permissions.
|
///A resource couldn’t be read because of insufficient permissions.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.noPermissionsToReadFile',
|
apiName: 'URLError.noPermissionsToReadFile',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2882941-nopermissionstoreadfile',
|
apiUrl:
|
||||||
value: -1102
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2882941-nopermissionstoreadfile',
|
||||||
)
|
value: -1102)
|
||||||
])
|
])
|
||||||
static const NO_PERMISSIONS_TO_READ_FILE = WebResourceErrorType_._internal("NO_PERMISSIONS_TO_READ_FILE");
|
static const NO_PERMISSIONS_TO_READ_FILE =
|
||||||
|
WebResourceErrorType_._internal("NO_PERMISSIONS_TO_READ_FILE");
|
||||||
|
|
||||||
///The length of the resource data exceeds the maximum allowed.
|
///The length of the resource data exceeds the maximum allowed.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.dataLengthExceedsMaximum',
|
apiName: 'URLError.dataLengthExceedsMaximum',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2882930-datalengthexceedsmaximum',
|
apiUrl:
|
||||||
value: -1103
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2882930-datalengthexceedsmaximum',
|
||||||
)
|
value: -1103)
|
||||||
])
|
])
|
||||||
static const DATA_LENGTH_EXCEEDS_MAXIMUM = WebResourceErrorType_._internal("DATA_LENGTH_EXCEEDS_MAXIMUM");
|
static const DATA_LENGTH_EXCEEDS_MAXIMUM =
|
||||||
|
WebResourceErrorType_._internal("DATA_LENGTH_EXCEEDS_MAXIMUM");
|
||||||
|
|
||||||
///An attempt to establish a secure connection failed for reasons that can’t be expressed more specifically.
|
///An attempt to establish a secure connection failed for reasons that can’t be expressed more specifically.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.secureConnectionFailed',
|
apiName: 'URLError.secureConnectionFailed',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883122-secureconnectionfailed',
|
apiUrl:
|
||||||
value: -1200
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883122-secureconnectionfailed',
|
||||||
)
|
value: -1200)
|
||||||
])
|
])
|
||||||
static const SECURE_CONNECTION_FAILED = WebResourceErrorType_._internal("SECURE_CONNECTION_FAILED");
|
static const SECURE_CONNECTION_FAILED =
|
||||||
|
WebResourceErrorType_._internal("SECURE_CONNECTION_FAILED");
|
||||||
|
|
||||||
///A server certificate had a date which indicates it has expired, or is not yet valid.
|
///A server certificate had a date which indicates it has expired, or is not yet valid.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.serverCertificateHasBadDate',
|
apiName: 'URLError.serverCertificateHasBadDate',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883088-servercertificatehasbaddate',
|
apiUrl:
|
||||||
value: -1201
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883088-servercertificatehasbaddate',
|
||||||
)
|
value: -1201)
|
||||||
])
|
])
|
||||||
static const SERVER_CERTIFICATE_HAS_BAD_DATE = WebResourceErrorType_._internal("SERVER_CERTIFICATE_HAS_BAD_DATE");
|
static const SERVER_CERTIFICATE_HAS_BAD_DATE =
|
||||||
|
WebResourceErrorType_._internal("SERVER_CERTIFICATE_HAS_BAD_DATE");
|
||||||
|
|
||||||
///A server certificate was signed by a root server that isn’t trusted.
|
///A server certificate was signed by a root server that isn’t trusted.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.serverCertificateUntrusted',
|
apiName: 'URLError.serverCertificateUntrusted',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2882976-servercertificateuntrusted',
|
apiUrl:
|
||||||
value: -1202
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2882976-servercertificateuntrusted',
|
||||||
)
|
value: -1202)
|
||||||
])
|
])
|
||||||
static const SERVER_CERTIFICATE_UNTRUSTED = WebResourceErrorType_._internal("SERVER_CERTIFICATE_UNTRUSTED");
|
static const SERVER_CERTIFICATE_UNTRUSTED =
|
||||||
|
WebResourceErrorType_._internal("SERVER_CERTIFICATE_UNTRUSTED");
|
||||||
|
|
||||||
///A server certificate was not signed by any root server.
|
///A server certificate was not signed by any root server.
|
||||||
///
|
///
|
||||||
|
@ -418,9 +446,9 @@ class WebResourceErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.serverCertificateHasUnknownRoot',
|
apiName: 'URLError.serverCertificateHasUnknownRoot',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883085-servercertificatehasunknownroot',
|
apiUrl:
|
||||||
value: -1203
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883085-servercertificatehasunknownroot',
|
||||||
)
|
value: -1203)
|
||||||
])
|
])
|
||||||
static const SERVER_CERTIFICATE_HAS_UNKNOWN_ROOT =
|
static const SERVER_CERTIFICATE_HAS_UNKNOWN_ROOT =
|
||||||
WebResourceErrorType_._internal("SERVER_CERTIFICATE_HAS_UNKNOWN_ROOT");
|
WebResourceErrorType_._internal("SERVER_CERTIFICATE_HAS_UNKNOWN_ROOT");
|
||||||
|
@ -432,9 +460,9 @@ class WebResourceErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.serverCertificateNotYetValid',
|
apiName: 'URLError.serverCertificateNotYetValid',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2882991-servercertificatenotyetvalid',
|
apiUrl:
|
||||||
value: -1204
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2882991-servercertificatenotyetvalid',
|
||||||
)
|
value: -1204)
|
||||||
])
|
])
|
||||||
static const SERVER_CERTIFICATE_NOT_YET_VALID =
|
static const SERVER_CERTIFICATE_NOT_YET_VALID =
|
||||||
WebResourceErrorType_._internal("SERVER_CERTIFICATE_NOT_YET_VALID");
|
WebResourceErrorType_._internal("SERVER_CERTIFICATE_NOT_YET_VALID");
|
||||||
|
@ -443,91 +471,100 @@ class WebResourceErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.clientCertificateRejected',
|
apiName: 'URLError.clientCertificateRejected',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883091-clientcertificaterejected',
|
apiUrl:
|
||||||
value: -1205
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883091-clientcertificaterejected',
|
||||||
)
|
value: -1205)
|
||||||
])
|
])
|
||||||
static const CLIENT_CERTIFICATE_REJECTED = WebResourceErrorType_._internal("CLIENT_CERTIFICATE_REJECTED");
|
static const CLIENT_CERTIFICATE_REJECTED =
|
||||||
|
WebResourceErrorType_._internal("CLIENT_CERTIFICATE_REJECTED");
|
||||||
|
|
||||||
///A client certificate was required to authenticate an SSL connection during a request.
|
///A client certificate was required to authenticate an SSL connection during a request.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.clientCertificateRequired',
|
apiName: 'URLError.clientCertificateRequired',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883199-clientcertificaterequired',
|
apiUrl:
|
||||||
value: -1206
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883199-clientcertificaterequired',
|
||||||
)
|
value: -1206)
|
||||||
])
|
])
|
||||||
static const CLIENT_CERTIFICATE_REQUIRED = WebResourceErrorType_._internal("CLIENT_CERTIFICATE_REQUIRED");
|
static const CLIENT_CERTIFICATE_REQUIRED =
|
||||||
|
WebResourceErrorType_._internal("CLIENT_CERTIFICATE_REQUIRED");
|
||||||
|
|
||||||
///A request to load an item only from the cache could not be satisfied.
|
///A request to load an item only from the cache could not be satisfied.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.cannotLoadFromNetwork',
|
apiName: 'URLError.cannotLoadFromNetwork',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2882968-cannotloadfromnetwork',
|
apiUrl:
|
||||||
value: -2000
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2882968-cannotloadfromnetwork',
|
||||||
)
|
value: -2000)
|
||||||
])
|
])
|
||||||
static const CANNOT_LOAD_FROM_NETWORK = WebResourceErrorType_._internal("CANNOT_LOAD_FROM_NETWORK");
|
static const CANNOT_LOAD_FROM_NETWORK =
|
||||||
|
WebResourceErrorType_._internal("CANNOT_LOAD_FROM_NETWORK");
|
||||||
|
|
||||||
///A download task couldn’t create the downloaded file on disk because of an I/O failure.
|
///A download task couldn’t create the downloaded file on disk because of an I/O failure.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.cannotCreateFile',
|
apiName: 'URLError.cannotCreateFile',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883204-cannotcreatefile',
|
apiUrl:
|
||||||
value: -3000
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883204-cannotcreatefile',
|
||||||
)
|
value: -3000)
|
||||||
])
|
])
|
||||||
static const CANNOT_CREATE_FILE = WebResourceErrorType_._internal("CANNOT_CREATE_FILE");
|
static const CANNOT_CREATE_FILE =
|
||||||
|
WebResourceErrorType_._internal("CANNOT_CREATE_FILE");
|
||||||
|
|
||||||
///A download task was unable to open the downloaded file on disk.
|
///A download task was unable to open the downloaded file on disk.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.cannotOpenFile',
|
apiName: 'URLError.cannotOpenFile',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883034-cannotopenfile',
|
apiUrl:
|
||||||
value: -3001
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883034-cannotopenfile',
|
||||||
)
|
value: -3001)
|
||||||
])
|
])
|
||||||
static const CANNOT_OPEN_FILE = WebResourceErrorType_._internal("CANNOT_OPEN_FILE");
|
static const CANNOT_OPEN_FILE =
|
||||||
|
WebResourceErrorType_._internal("CANNOT_OPEN_FILE");
|
||||||
|
|
||||||
///A download task couldn’t close the downloaded file on disk.
|
///A download task couldn’t close the downloaded file on disk.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.cannotCloseFile',
|
apiName: 'URLError.cannotCloseFile',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883215-cannotclosefile',
|
apiUrl:
|
||||||
value: -3002
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883215-cannotclosefile',
|
||||||
)
|
value: -3002)
|
||||||
])
|
])
|
||||||
static const CANNOT_CLOSE_FILE = WebResourceErrorType_._internal("CANNOT_CLOSE_FILE");
|
static const CANNOT_CLOSE_FILE =
|
||||||
|
WebResourceErrorType_._internal("CANNOT_CLOSE_FILE");
|
||||||
|
|
||||||
///A download task was unable to write to the downloaded file on disk.
|
///A download task was unable to write to the downloaded file on disk.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.cannotWriteToFile',
|
apiName: 'URLError.cannotWriteToFile',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883098-cannotwritetofile',
|
apiUrl:
|
||||||
value: -3003
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883098-cannotwritetofile',
|
||||||
)
|
value: -3003)
|
||||||
])
|
])
|
||||||
static const CANNOT_WRITE_TO_FILE = WebResourceErrorType_._internal("CANNOT_WRITE_TO_FILE");
|
static const CANNOT_WRITE_TO_FILE =
|
||||||
|
WebResourceErrorType_._internal("CANNOT_WRITE_TO_FILE");
|
||||||
|
|
||||||
///A download task was unable to remove a downloaded file from disk.
|
///A download task was unable to remove a downloaded file from disk.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.cannotRemoveFile',
|
apiName: 'URLError.cannotRemoveFile',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883202-cannotremovefile',
|
apiUrl:
|
||||||
value: -3004
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883202-cannotremovefile',
|
||||||
)
|
value: -3004)
|
||||||
])
|
])
|
||||||
static const CANNOT_REMOVE_FILE = WebResourceErrorType_._internal("CANNOT_REMOVE_FILE");
|
static const CANNOT_REMOVE_FILE =
|
||||||
|
WebResourceErrorType_._internal("CANNOT_REMOVE_FILE");
|
||||||
|
|
||||||
///A download task was unable to move a downloaded file on disk.
|
///A download task was unable to move a downloaded file on disk.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.cannotMoveFile',
|
apiName: 'URLError.cannotMoveFile',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883180-cannotmovefile',
|
apiUrl:
|
||||||
value: -3005
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883180-cannotmovefile',
|
||||||
)
|
value: -3005)
|
||||||
])
|
])
|
||||||
static const CANNOT_MOVE_FILE = WebResourceErrorType_._internal("CANNOT_MOVE_FILE");
|
static const CANNOT_MOVE_FILE =
|
||||||
|
WebResourceErrorType_._internal("CANNOT_MOVE_FILE");
|
||||||
|
|
||||||
///A download task failed to decode an encoded file during the download.
|
///A download task failed to decode an encoded file during the download.
|
||||||
///
|
///
|
||||||
|
@ -536,9 +573,9 @@ class WebResourceErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.downloadDecodingFailedMidStream',
|
apiName: 'URLError.downloadDecodingFailedMidStream',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883224-downloaddecodingfailedmidstream',
|
apiUrl:
|
||||||
value: -3006
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883224-downloaddecodingfailedmidstream',
|
||||||
)
|
value: -3006)
|
||||||
])
|
])
|
||||||
static const DOWNLOAD_DECODING_FAILED_MID_STREAM =
|
static const DOWNLOAD_DECODING_FAILED_MID_STREAM =
|
||||||
WebResourceErrorType_._internal("DOWNLOAD_DECODING_FAILED_MID_STREAM");
|
WebResourceErrorType_._internal("DOWNLOAD_DECODING_FAILED_MID_STREAM");
|
||||||
|
@ -550,9 +587,9 @@ class WebResourceErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.downloadDecodingFailedToComplete',
|
apiName: 'URLError.downloadDecodingFailedToComplete',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2882936-downloaddecodingfailedtocomplete',
|
apiUrl:
|
||||||
value: -3007
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2882936-downloaddecodingfailedtocomplete',
|
||||||
)
|
value: -3007)
|
||||||
])
|
])
|
||||||
static const DOWNLOAD_DECODING_FAILED_TO_COMPLETE =
|
static const DOWNLOAD_DECODING_FAILED_TO_COMPLETE =
|
||||||
WebResourceErrorType_._internal("DOWNLOAD_DECODING_FAILED_TO_COMPLETE");
|
WebResourceErrorType_._internal("DOWNLOAD_DECODING_FAILED_TO_COMPLETE");
|
||||||
|
@ -561,41 +598,45 @@ class WebResourceErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.internationalRoamingOff',
|
apiName: 'URLError.internationalRoamingOff',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883134-internationalroamingoff',
|
apiUrl:
|
||||||
value: -1018
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883134-internationalroamingoff',
|
||||||
)
|
value: -1018)
|
||||||
])
|
])
|
||||||
static const INTERNATIONAL_ROAMING_OFF = WebResourceErrorType_._internal("INTERNATIONAL_ROAMING_OFF");
|
static const INTERNATIONAL_ROAMING_OFF =
|
||||||
|
WebResourceErrorType_._internal("INTERNATIONAL_ROAMING_OFF");
|
||||||
|
|
||||||
///A connection was attempted while a phone call is active on a network that does not support simultaneous phone and data communication (EDGE or GPRS).
|
///A connection was attempted while a phone call is active on a network that does not support simultaneous phone and data communication (EDGE or GPRS).
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.callIsActive',
|
apiName: 'URLError.callIsActive',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883170-callisactive',
|
apiUrl:
|
||||||
value: -1019
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883170-callisactive',
|
||||||
)
|
value: -1019)
|
||||||
])
|
])
|
||||||
static const CALL_IS_ACTIVE = WebResourceErrorType_._internal("CALL_IS_ACTIVE");
|
static const CALL_IS_ACTIVE =
|
||||||
|
WebResourceErrorType_._internal("CALL_IS_ACTIVE");
|
||||||
|
|
||||||
///The cellular network disallowed a connection.
|
///The cellular network disallowed a connection.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.dataNotAllowed',
|
apiName: 'URLError.dataNotAllowed',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883217-datanotallowed',
|
apiUrl:
|
||||||
value: -1020
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883217-datanotallowed',
|
||||||
)
|
value: -1020)
|
||||||
])
|
])
|
||||||
static const DATA_NOT_ALLOWED = WebResourceErrorType_._internal("DATA_NOT_ALLOWED");
|
static const DATA_NOT_ALLOWED =
|
||||||
|
WebResourceErrorType_._internal("DATA_NOT_ALLOWED");
|
||||||
|
|
||||||
///A body stream is needed but the client did not provide one.
|
///A body stream is needed but the client did not provide one.
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.requestBodyStreamExhausted',
|
apiName: 'URLError.requestBodyStreamExhausted',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883176-requestbodystreamexhausted',
|
apiUrl:
|
||||||
value: -1021
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883176-requestbodystreamexhausted',
|
||||||
)
|
value: -1021)
|
||||||
])
|
])
|
||||||
static const REQUEST_BODY_STREAM_EXHAUSTED = WebResourceErrorType_._internal("REQUEST_BODY_STREAM_EXHAUSTED");
|
static const REQUEST_BODY_STREAM_EXHAUSTED =
|
||||||
|
WebResourceErrorType_._internal("REQUEST_BODY_STREAM_EXHAUSTED");
|
||||||
|
|
||||||
///The shared container identifier of the URL session configuration is needed but has not been set.
|
///The shared container identifier of the URL session configuration is needed but has not been set.
|
||||||
///
|
///
|
||||||
|
@ -604,12 +645,13 @@ class WebResourceErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.backgroundSessionRequiresSharedContainer',
|
apiName: 'URLError.backgroundSessionRequiresSharedContainer',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883169-backgroundsessionrequiressharedc',
|
apiUrl:
|
||||||
value: -995
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883169-backgroundsessionrequiressharedc',
|
||||||
)
|
value: -995)
|
||||||
])
|
])
|
||||||
static const BACKGROUND_SESSION_REQUIRES_SHARED_CONTAINER =
|
static const BACKGROUND_SESSION_REQUIRES_SHARED_CONTAINER =
|
||||||
WebResourceErrorType_._internal("BACKGROUND_SESSION_REQUIRES_SHARED_CONTAINER");
|
WebResourceErrorType_._internal(
|
||||||
|
"BACKGROUND_SESSION_REQUIRES_SHARED_CONTAINER");
|
||||||
|
|
||||||
///An app or app extension attempted to connect to a background session that is already connected to a process.
|
///An app or app extension attempted to connect to a background session that is already connected to a process.
|
||||||
///
|
///
|
||||||
|
@ -618,12 +660,13 @@ class WebResourceErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.backgroundSessionInUseByAnotherProcess',
|
apiName: 'URLError.backgroundSessionInUseByAnotherProcess',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2882923-backgroundsessioninusebyanotherp',
|
apiUrl:
|
||||||
value: -996
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2882923-backgroundsessioninusebyanotherp',
|
||||||
)
|
value: -996)
|
||||||
])
|
])
|
||||||
static const BACKGROUND_SESSION_IN_USE_BY_ANOTHER_PROCESS =
|
static const BACKGROUND_SESSION_IN_USE_BY_ANOTHER_PROCESS =
|
||||||
WebResourceErrorType_._internal("BACKGROUND_SESSION_IN_USE_BY_ANOTHER_PROCESS");
|
WebResourceErrorType_._internal(
|
||||||
|
"BACKGROUND_SESSION_IN_USE_BY_ANOTHER_PROCESS");
|
||||||
|
|
||||||
///The app is suspended or exits while a background data task is processing.
|
///The app is suspended or exits while a background data task is processing.
|
||||||
///
|
///
|
||||||
|
@ -632,9 +675,9 @@ class WebResourceErrorType_ {
|
||||||
@EnumSupportedPlatforms(platforms: [
|
@EnumSupportedPlatforms(platforms: [
|
||||||
EnumIOSPlatform(
|
EnumIOSPlatform(
|
||||||
apiName: 'URLError.backgroundSessionWasDisconnected',
|
apiName: 'URLError.backgroundSessionWasDisconnected',
|
||||||
apiUrl: 'https://developer.apple.com/documentation/foundation/urlerror/code/2883075-backgroundsessionwasdisconnected',
|
apiUrl:
|
||||||
value: -997
|
'https://developer.apple.com/documentation/foundation/urlerror/code/2883075-backgroundsessionwasdisconnected',
|
||||||
)
|
value: -997)
|
||||||
])
|
])
|
||||||
static const BACKGROUND_SESSION_WAS_DISCONNECTED =
|
static const BACKGROUND_SESSION_WAS_DISCONNECTED =
|
||||||
WebResourceErrorType_._internal("BACKGROUND_SESSION_WAS_DISCONNECTED");
|
WebResourceErrorType_._internal("BACKGROUND_SESSION_WAS_DISCONNECTED");
|
||||||
|
|
|
@ -39,7 +39,8 @@ class HeadlessInAppWebViewWebElement implements Disposable {
|
||||||
dispose();
|
dispose();
|
||||||
break;
|
break;
|
||||||
case "setSize":
|
case "setSize":
|
||||||
Size size = MapSize.fromMap(call.arguments['size'].cast<String, dynamic>())!;
|
Size size =
|
||||||
|
MapSize.fromMap(call.arguments['size'].cast<String, dynamic>())!;
|
||||||
setSize(size);
|
setSize(size);
|
||||||
break;
|
break;
|
||||||
case "getSize":
|
case "getSize":
|
||||||
|
|
|
@ -20,7 +20,8 @@ class HeadlessInAppWebViewManager {
|
||||||
const StandardMethodCodec(),
|
const StandardMethodCodec(),
|
||||||
_messenger,
|
_messenger,
|
||||||
);
|
);
|
||||||
HeadlessInAppWebViewManager._sharedChannel.setMethodCallHandler((call) async {
|
HeadlessInAppWebViewManager._sharedChannel
|
||||||
|
.setMethodCallHandler((call) async {
|
||||||
try {
|
try {
|
||||||
return await handleMethod(call);
|
return await handleMethod(call);
|
||||||
} on Error catch (e) {
|
} on Error catch (e) {
|
||||||
|
|
|
@ -110,8 +110,10 @@ class InAppWebViewWebElement implements Disposable {
|
||||||
return await postUrl(url: url, postData: postData);
|
return await postUrl(url: url, postData: postData);
|
||||||
case "injectJavascriptFileFromUrl":
|
case "injectJavascriptFileFromUrl":
|
||||||
String urlFile = call.arguments["urlFile"];
|
String urlFile = call.arguments["urlFile"];
|
||||||
Map<String, dynamic> scriptHtmlTagAttributes = call.arguments["scriptHtmlTagAttributes"].cast<String, dynamic>();
|
Map<String, dynamic> scriptHtmlTagAttributes =
|
||||||
await injectJavascriptFileFromUrl(urlFile: urlFile, scriptHtmlTagAttributes: scriptHtmlTagAttributes);
|
call.arguments["scriptHtmlTagAttributes"].cast<String, dynamic>();
|
||||||
|
await injectJavascriptFileFromUrl(
|
||||||
|
urlFile: urlFile, scriptHtmlTagAttributes: scriptHtmlTagAttributes);
|
||||||
break;
|
break;
|
||||||
case "injectCSSCode":
|
case "injectCSSCode":
|
||||||
String source = call.arguments["source"];
|
String source = call.arguments["source"];
|
||||||
|
@ -119,8 +121,11 @@ class InAppWebViewWebElement implements Disposable {
|
||||||
break;
|
break;
|
||||||
case "injectCSSFileFromUrl":
|
case "injectCSSFileFromUrl":
|
||||||
String urlFile = call.arguments["urlFile"];
|
String urlFile = call.arguments["urlFile"];
|
||||||
Map<String, dynamic> cssLinkHtmlTagAttributes = call.arguments["cssLinkHtmlTagAttributes"].cast<String, dynamic>();
|
Map<String, dynamic> cssLinkHtmlTagAttributes =
|
||||||
await injectCSSFileFromUrl(urlFile: urlFile, cssLinkHtmlTagAttributes: cssLinkHtmlTagAttributes);
|
call.arguments["cssLinkHtmlTagAttributes"].cast<String, dynamic>();
|
||||||
|
await injectCSSFileFromUrl(
|
||||||
|
urlFile: urlFile,
|
||||||
|
cssLinkHtmlTagAttributes: cssLinkHtmlTagAttributes);
|
||||||
break;
|
break;
|
||||||
case "scrollTo":
|
case "scrollTo":
|
||||||
int x = call.arguments["x"];
|
int x = call.arguments["x"];
|
||||||
|
@ -185,12 +190,13 @@ class InAppWebViewWebElement implements Disposable {
|
||||||
|
|
||||||
if (settings.iframeSandbox != null &&
|
if (settings.iframeSandbox != null &&
|
||||||
settings.iframeSandbox != Sandbox.ALLOW_ALL) {
|
settings.iframeSandbox != Sandbox.ALLOW_ALL) {
|
||||||
iframe.setAttribute(
|
iframe.setAttribute("sandbox",
|
||||||
"sandbox", settings.iframeSandbox!.map((e) => e.toNativeValue()).join(" "));
|
settings.iframeSandbox!.map((e) => e.toNativeValue()).join(" "));
|
||||||
} else if (settings.iframeSandbox == Sandbox.ALLOW_ALL) {
|
} else if (settings.iframeSandbox == Sandbox.ALLOW_ALL) {
|
||||||
iframe.removeAttribute("sandbox");
|
iframe.removeAttribute("sandbox");
|
||||||
} else if (sandbox != Sandbox.values) {
|
} else if (sandbox != Sandbox.values) {
|
||||||
iframe.setAttribute("sandbox", sandbox.map((e) => e.toNativeValue()).join(" "));
|
iframe.setAttribute(
|
||||||
|
"sandbox", sandbox.map((e) => e.toNativeValue()).join(" "));
|
||||||
settings.iframeSandbox = sandbox;
|
settings.iframeSandbox = sandbox;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -296,33 +302,46 @@ class InAppWebViewWebElement implements Disposable {
|
||||||
return _callMethod("getTitle");
|
return _callMethod("getTitle");
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> postUrl({required String url, required Uint8List postData}) async {
|
Future<void> postUrl(
|
||||||
await loadUrl(urlRequest: URLRequest(url: Uri.parse(url), method: "POST", body: postData));
|
{required String url, required Uint8List postData}) async {
|
||||||
|
await loadUrl(
|
||||||
|
urlRequest:
|
||||||
|
URLRequest(url: Uri.parse(url), method: "POST", body: postData));
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> injectJavascriptFileFromUrl({required String urlFile,
|
Future<void> injectJavascriptFileFromUrl(
|
||||||
|
{required String urlFile,
|
||||||
Map<String, dynamic>? scriptHtmlTagAttributes}) async {
|
Map<String, dynamic>? scriptHtmlTagAttributes}) async {
|
||||||
_callMethod("injectJavascriptFileFromUrl",
|
_callMethod("injectJavascriptFileFromUrl", [
|
||||||
[urlFile, scriptHtmlTagAttributes != null ?
|
urlFile,
|
||||||
js.JsObject.jsify(scriptHtmlTagAttributes) : null]);
|
scriptHtmlTagAttributes != null
|
||||||
|
? js.JsObject.jsify(scriptHtmlTagAttributes)
|
||||||
|
: null
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> injectCSSCode({required String source}) async {
|
Future<void> injectCSSCode({required String source}) async {
|
||||||
_callMethod("injectCSSCode", [source]);
|
_callMethod("injectCSSCode", [source]);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> injectCSSFileFromUrl({required String urlFile,
|
Future<void> injectCSSFileFromUrl(
|
||||||
|
{required String urlFile,
|
||||||
Map<String, dynamic>? cssLinkHtmlTagAttributes}) async {
|
Map<String, dynamic>? cssLinkHtmlTagAttributes}) async {
|
||||||
_callMethod("injectCSSFileFromUrl",
|
_callMethod("injectCSSFileFromUrl", [
|
||||||
[urlFile, cssLinkHtmlTagAttributes != null ?
|
urlFile,
|
||||||
js.JsObject.jsify(cssLinkHtmlTagAttributes) : null]);
|
cssLinkHtmlTagAttributes != null
|
||||||
|
? js.JsObject.jsify(cssLinkHtmlTagAttributes)
|
||||||
|
: null
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> scrollTo({required int x, required int y, bool animated = false}) async {
|
Future<void> scrollTo(
|
||||||
|
{required int x, required int y, bool animated = false}) async {
|
||||||
_callMethod('scrollTo', [x, y, animated]);
|
_callMethod('scrollTo', [x, y, animated]);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> scrollBy({required int x, required int y, bool animated = false}) async {
|
Future<void> scrollBy(
|
||||||
|
{required int x, required int y, bool animated = false}) async {
|
||||||
_callMethod('scrollBy', [x, y, animated]);
|
_callMethod('scrollBy', [x, y, animated]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -417,7 +436,8 @@ class InAppWebViewWebElement implements Disposable {
|
||||||
iframe.removeAttribute("sandbox");
|
iframe.removeAttribute("sandbox");
|
||||||
}
|
}
|
||||||
} else if (sandbox != Sandbox.values) {
|
} else if (sandbox != Sandbox.values) {
|
||||||
iframe.setAttribute("sandbox", sandbox.map((e) => e.toNativeValue()).join(" "));
|
iframe.setAttribute(
|
||||||
|
"sandbox", sandbox.map((e) => e.toNativeValue()).join(" "));
|
||||||
}
|
}
|
||||||
newSettings.iframeSandbox = sandbox;
|
newSettings.iframeSandbox = sandbox;
|
||||||
|
|
||||||
|
@ -510,10 +530,7 @@ class InAppWebViewWebElement implements Disposable {
|
||||||
}
|
}
|
||||||
|
|
||||||
void onPrintRequest(String? url) async {
|
void onPrintRequest(String? url) async {
|
||||||
var obj = {
|
var obj = {"url": url, "printJobId": null};
|
||||||
"url": url,
|
|
||||||
"printJobId": null
|
|
||||||
};
|
|
||||||
|
|
||||||
await _channel?.invokeMethod("onPrintRequest", obj);
|
await _channel?.invokeMethod("onPrintRequest", obj);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
///Stub for web support.
|
///Stub for web support.
|
||||||
class FlutterInAppWebViewWebPlatform {
|
class FlutterInAppWebViewWebPlatform {
|
||||||
static void registerWith(dynamic registrar) {
|
static void registerWith(dynamic registrar) {}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -11,7 +11,8 @@ import '../types/disposable.dart';
|
||||||
import 'web_authenticate_session_settings.dart';
|
import 'web_authenticate_session_settings.dart';
|
||||||
|
|
||||||
///A completion handler for the [WebAuthenticationSession].
|
///A completion handler for the [WebAuthenticationSession].
|
||||||
typedef WebAuthenticationSessionCompletionHandler = Future<void> Function(Uri? url, WebAuthenticationSessionError? error)?;
|
typedef WebAuthenticationSessionCompletionHandler = Future<void> Function(
|
||||||
|
Uri? url, WebAuthenticationSessionError? error)?;
|
||||||
|
|
||||||
///A session that an app uses to authenticate a user through a web service.
|
///A session that an app uses to authenticate a user through a web service.
|
||||||
///
|
///
|
||||||
|
|
|
@ -11,7 +11,8 @@
|
||||||
"build": "flutter pub run build_runner build --delete-conflicting-outputs",
|
"build": "flutter pub run build_runner build --delete-conflicting-outputs",
|
||||||
"watch": "flutter pub run build_runner watch --delete-conflicting-outputs",
|
"watch": "flutter pub run build_runner watch --delete-conflicting-outputs",
|
||||||
"publish:dry": "npm run build && flutter pub publish --dry-run",
|
"publish:dry": "npm run build && flutter pub publish --dry-run",
|
||||||
"publish": "npm run build && flutter pub publish"
|
"publish": "npm run build && flutter pub publish",
|
||||||
|
"format": "flutter format lib example/integration_test"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Loading…
Reference in New Issue