SurfaceAndroidBannerView class
Android BannerViewPlatform
that uses AndroidViewSurface to build the
BannerView widget.
To use this, set BannerView.platform to an instance of this class.
This implementation uses AndroidViewSurface to render the BannerView on Android. It solves multiple issues related to accessibility and interaction with the BannerView at the cost of some performance on Android versions below 10.
To support transparent backgrounds on all Android devices, this
implementation uses hybrid composition when the opacity of
CreationParams.backgroundColor
is less than 1.0. See
https://github.com/flutter/flutter/wiki/Hybrid-Composition for more
information.
- Inheritance
-
- Object
- AndroidBannerView
- SurfaceAndroidBannerView
Constructors
- SurfaceAndroidBannerView({bool hybridComposition = false})
- Constructs a SurfaceAndroidBannerView.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hybridComposition → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
{required BuildContext context, required Map< String, dynamic> creationParams, required BannerViewPlatformCallbacksHandler bannerViewPlatformCallbacksHandler, BannerViewPlatformCreatedCallback? onBannerViewPlatformCreated, Set<Factory< ? gestureRecognizers}) → WidgetOneSequenceGestureRecognizer> > -
override
-
createView(
{required String viewType, required bool hybridComposition, required Map< String, dynamic> creationParams, required PlatformViewCreationParams params}) → AndroidViewController -
inherited
-
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