WebViewAndroidDownloadListener class
Receives callbacks when content can not be handled by the rendering engine for WebViewAndroidPlatformController, and should be downloaded instead.
When handling navigation requests, this calls onNavigationRequestCallback
when a android_webview.WebView
attempts to navigate to a new page. If
this callback return true, this calls loadUrl.
Constructors
-
WebViewAndroidDownloadListener({required Future<
void> loadUrl(String url, Map<String, String> ? headers)}) - Creates a WebViewAndroidDownloadListener.
Properties
Methods
-
copy(
) → DownloadListener -
Instantiates and returns a functionally identical object to oneself.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDownloadStart(
String url, String userAgent, String contentDisposition, String mimetype, int contentLength) → void - Notify the host application that a file should be downloaded.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited