WebViewDownloadDelegate class

Optional download handling. This delegate does not create a save dialog or provide a background download manager. Native requests retain their engine context; notification-only platforms cannot offer every action. Updating the delegate cancels unanswered requests. Accepted downloads keep reporting to their original delegate until completion or controller disposal.

Constructors

WebViewDownloadDelegate({required FutureOr<WebViewDownloadDecision> onDownloadRequest(WebViewDownloadRequest request), void onDownloadProgress(WebViewDownloadProgress progress)?, void onDownloadResult(WebViewDownloadResult result)?})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
onDownloadProgress → void Function(WebViewDownloadProgress progress)?
final
onDownloadRequest → FutureOr<WebViewDownloadDecision> Function(WebViewDownloadRequest request)
final
onDownloadResult → void Function(WebViewDownloadResult result)?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

decide(WebViewDownloadRequest request, {Future<void>? cancelled}) → Future<WebViewDownloadDecision>
Resolves one decision with a bounded wait and checks advertised actions. Platform implementations must cancel and report failures if this throws.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyProgress(WebViewDownloadProgress progress) → void
notifyResult(WebViewDownloadResult result) → void
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited