AndroidWebViewFeature class
Class that represents an Android-specific utility class for checking which WebView Support Library features are supported on the device.
Officially Supported Platforms/Implementations:
- Android native WebView
- Inheritance
-
- Object
- PlatformInterface
- AndroidWebViewFeature
Constructors
- AndroidWebViewFeature.new(PlatformWebViewFeatureCreationParams params)
- Creates a new AndroidWebViewFeature.
- AndroidWebViewFeature.static()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- params → PlatformWebViewFeatureCreationParams
-
The parameters used to initialize the
PlatformWebViewFeature
.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
isFeatureSupported(
WebViewFeature feature) → Future< bool> -
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, and the WebView APK on the device. If running on a device with a lower API level, this will always returnfalse
. -
isStartupFeatureSupported(
WebViewFeature startupFeature) → Future< bool> -
Return whether a startup feature is supported at run-time.
On devices running Android version
Build.VERSION_CODES.LOLLIPOP
and higher, this will check whether a startup feature is supported, depending on the combination of the desired feature, the Android version of device, and the WebView APK on the device. If running on a device with a lower API level, this will always returnfalse
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
instance(
) → AndroidWebViewFeature - Gets the AndroidWebViewFeature shared instance.