Interface PluginRegistry

    • Method Detail

      • registrarFor

        @Deprecated
        PluginRegistry.Registrar registrarFor​(String pluginKey)
        Deprecated.
        See https://flutter.dev/go/android-project-migration for migration details.
        Returns a PluginRegistry.Registrar for receiving the registrations pertaining to the specified plugin.
        Parameters:
        pluginKey - a unique String identifying the plugin; typically the fully qualified name of the plugin's main class.
        Returns:
        A PluginRegistry.Registrar for receiving the registrations pertianing to the specified plugin.
      • hasPlugin

        @Deprecated
        boolean hasPlugin​(String pluginKey)
        Deprecated.
        See https://flutter.dev/go/android-project-migration for migration details.
        Returns whether the specified plugin is known to this registry.
        Parameters:
        pluginKey - a unique String identifying the plugin; typically the fully qualified name of the plugin's main class.
        Returns:
        true if this registry has handed out a registrar for the specified plugin.
      • valuePublishedByPlugin

        @Deprecated
        <T> T valuePublishedByPlugin​(String pluginKey)
        Deprecated.
        See https://flutter.dev/go/android-project-migration for migration details.
        Returns the value published by the specified plugin, if any.

        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.

        Type Parameters:
        T - The type of the value.
        Parameters:
        pluginKey - a unique String identifying the plugin; typically the fully qualified name of the plugin's main class.
        Returns:
        the published value, possibly null.