FlutterWebviewPlugin class

Singleton Class that communicate with a Webview Instance Have to be instanciate after runApp called.

Constructors

FlutterWebviewPlugin()
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
onDestroy Stream<Null>
Listening the OnDestroy LifeCycle Event for Android
read-only
onHttpError Stream<WebViewHttpError>
read-only
onSchemeMatched Stream<String>
read-only
onScrollXChanged Stream<double>
Listening web view x position scroll change
read-only
onScrollYChanged Stream<double>
Listening web view y position scroll change
read-only
onStateChanged Stream<WebViewStateChanged>
Listening the onState Event for iOS WebView and Android content is Map for type: {shouldStart(iOS)|startLoad|finishLoad} more detail than other events
read-only
onUrlChanged Stream<String>
Listening url changed
read-only
onUrlOverridden Stream<String>
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

close() Future
Close the Webview Will trigger the onDestroy event
dispose() → void
Close all Streams
evalJavascript(String code) Future<String>
Execute Javascript inside webview
getCookies() Future<Map<String, String>>
goBack() Future
Navigates back on the Webview. This is only available on Android for now.
goForward() Future
Navigates forward on the Webview. This is only available on Android for now.
hide() Future
launch(String url, {Map<String, String> headers, bool withJavascript, bool clearCache, bool clearCookies, bool hidden, bool enableAppScheme, Rect rect, String userAgent, bool withZoom, bool withLocalStorage, bool withLocalUrl, bool scrollBar, String html, bool withWideViewPort, bool autoLoadImage, BigInt cacheMaxSize, bool allowFileAccess, bool appCacheEnabled, String defaultTextEncodingName}) Future<Null>
Start the Webview with url [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
registerAcitivityResultListener() Future
adds the plugin as ActivityResultListener Only needed and used on Android
reload() Future
Reloads the WebView. This is only available on Android for now.
reloadUrl(String url) Future
removeAcitivityResultListener() Future
removes the plugin as ActivityResultListener Only needed and used on Android
resize(Rect rect) Future<Null>
resize webview
setOverridableUrls(List<String> overridableUrls) Future
setUriSchemes(List<String> schemes) Future
show() Future
stopLoading() Future
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited