public interface PluginRegistry
ActivityPluginBinding.
This class also contains deprecated v1 embedding APIs used for plugin registration.
In v1 Android applications, an auto-generated and auto-updated plugin registrant class
(GeneratedPluginRegistrant) makes use of a PluginRegistry to register contributions from
each plugin mentioned in the application's pubspec file. The generated registrant class is, again
by default, called from the application's main Activity, which defaults to an
instance of FlutterActivity, itself a PluginRegistry.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
PluginRegistry.ActivityResultListener
Delegate interface for handling activity results on behalf of the main
Activity. |
static interface |
PluginRegistry.NewIntentListener
Delegate interface for handling new intents on behalf of the main
Activity. |
static interface |
PluginRegistry.PluginRegistrantCallback
Deprecated.
See https://flutter.dev/go/android-project-migration for migration details.
|
static interface |
PluginRegistry.Registrar
Deprecated.
This registrar is for Flutter's v1 embedding. For instructions on migrating a
plugin from Flutter's v1 Android embedding to v2, visit
http://flutter.dev/go/android-plugin-migration
|
static interface |
PluginRegistry.RequestPermissionsResultListener
Delegate interface for handling result of permissions requests on behalf of the main
Activity. |
static interface |
PluginRegistry.UserLeaveHintListener
Delegate interface for handling user leave hints on behalf of the main
Activity. |
static interface |
PluginRegistry.ViewDestroyListener
Deprecated.
See https://flutter.dev/go/android-project-migration for migration details.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasPlugin(String pluginKey)
Deprecated.
See https://flutter.dev/go/android-project-migration for migration details.
|
PluginRegistry.Registrar |
registrarFor(String pluginKey)
Deprecated.
See https://flutter.dev/go/android-project-migration for migration details.
|
<T> T |
valuePublishedByPlugin(String pluginKey)
Deprecated.
See https://flutter.dev/go/android-project-migration for migration details.
|
@Deprecated PluginRegistry.Registrar registrarFor(String pluginKey)
PluginRegistry.Registrar for receiving the registrations pertaining to the specified plugin.pluginKey - a unique String identifying the plugin; typically the fully qualified name of
the plugin's main class.PluginRegistry.Registrar for receiving the registrations pertianing to the specified plugin.@Deprecated boolean hasPlugin(String pluginKey)
pluginKey - a unique String identifying the plugin; typically the fully qualified name of
the plugin's main class.@Deprecated <T> T valuePublishedByPlugin(String pluginKey)
Plugins may publish a single value, such as an instance of the plugin's main class, for situations where external control or interaction is needed. Clients are expected to know the value's type.
T - The type of the value.pluginKey - a unique String identifying the plugin; typically the fully qualified name of
the plugin's main class.