@protocol FlutterPlugin <NSObject, FlutterApplicationLifeCycleDelegate>
Implemented by the iOS part of a Flutter plugin.
Defines a set of optional callback methods and a method to set up the plugin and register it to be called by other application components.
Registers this plugin using the context information and callback registration methods exposed by the given registrar.
The registrar is obtained from a
FlutterPluginRegistrywhich keeps track of the identity of registered plugins and provides basic support for cross-plugin coordination.
The caller of this method, a plugin registrant, is usually autogenerated by Flutter tooling based on declared plugin dependencies. The generated registrant asks the registry for a registrar for each plugin, and calls this method to allow the plugin to initialize itself and register callbacks with application objects available through the registrar protocol.
+ (void)registerWithRegistrar: (nonnull NSObject<FlutterPluginRegistrar> *)registrar;
A helper providing application context and methods for registering callbacks.
This method is typically called from within an application’s
AppDelegateat startup to allow for plugins which create additional
FlutterEngineinstances to register the application’s plugins.
+ (void)setPluginRegistrantCallback: (nonnull FlutterPluginRegistrantCallback)callback;
A callback for registering some set of plugins with a