AdViewChannel class

The method channel of one native ad view, named before the view exists.

Native views start loading as soon as they are created, which can be before onPlatformViewCreated runs, so a channel named after the platform view id could miss early events (an immediate failure, for example). Instead the widget picks id, listens on the channel, and passes the id to the native view as the channelId creation parameter; the native view names its channel <prefix>_<channelId>.

Constructors

AdViewChannel(String prefix, Future handler(MethodCall call))
Listens on <prefix>_<id> with handler, under a fresh id.

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → int
The id the native view names its channel with (channelId).
final
methodChannel ↔ MethodChannel
The channel; also used to call the native view.
latefinal
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Stops listening. A new view needs a new AdViewChannel.
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