#import <FlutterPluginRegistrarMacOS.h>
Instance Methods | |
(nonnull id< FlutterPluginRegistrar >) | - registrarForPlugin: |
(nullable NSObject *) | - valuePublishedByPlugin: |
A registry of Flutter macOS plugins.
Plugins are identified by unique string keys, typically the name of the plugin's main class.
Plugins typically need contextual information and the ability to register callbacks for various application events. To keep the API of the registry focused, these facilities are not provided directly by the registry, but by a FlutterPluginRegistrar
, created by the registry in exchange for the unique key of the plugin.
There is no implied connection between the registry and the registrar. Specifically, callbacks registered by the plugin via the registrar may be relayed directly to the underlying iOS application objects.
Definition at line 130 of file FlutterPluginRegistrarMacOS.h.
- (nonnull id<FlutterPluginRegistrar>) registrarForPlugin: | (nonnull NSString *) | pluginKey |
Returns a registrar for registering a plugin.
pluginKey | The unique key identifying the plugin. |
- (nullable NSObject*) valuePublishedByPlugin: | (nonnull NSString *) | pluginKey |
Returns a value published by the specified plugin.
pluginKey | The unique key identifying the plugin. |
NSNull
if nothing has been published. Will be nil
if the plugin has not been registered.