PluginRegistry class

This class was previously separate from Registrar but was merged into it as part of a simplification of the web plugins API.

Inheritance
Available Extensions
Annotations
  • @Deprecated('Use Registrar instead. ' 'This feature was deprecated after v1.26.0-18.0.pre.')

Constructors

PluginRegistry([@Deprecated('This argument is ignored. ' 'This feature was deprecated after v1.26.0-18.0.pre.') BinaryMessenger? binaryMessenger])
Creates a Registrar.

Properties

hashCode int
The hash code for this object.
no setterinherited
messenger BinaryMessenger
Returns this.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

handleFrameworkMessage(String channel, ByteData? data, PlatformMessageResponseCallback? callback) Future<void>
Message handler for web plugins.
inherited
handlePlatformMessage(String channel, ByteData? data, PlatformMessageResponseCallback? callback) Future<void>
Receives a platform message from the framework.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerMessageHandler() → void
Registers the registrar's message handler (handlePlatformMessage) with the engine, so that plugin messages are correctly dispatched to the relevant registered plugin.
inherited
registrarFor(Type key) Registrar
Returns this. The argument is ignored.
send(String channel, ByteData? message) Future<ByteData?>
Sends a platform message from the platform side back to the framework.
inherited
setMessageHandler(String channel, MessageHandler? handler) → void
Set a callback for receiving messages from the platform plugins on the given channel, without decoding them.
inherited
toString() String
A string representation of this object.
inherited

Operators

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