Package io.flutter.embedding.engine.plugins

## Class FlutterPlugin.FlutterPluginBinding

- java.lang.Object
- - io.flutter.embedding.engine.plugins.FlutterPlugin.FlutterPluginBinding

- Enclosing interface:
    FlutterPlugin

      public static class FlutterPlugin.FlutterPluginBinding
      extends Object

  Resources made available to all plugins registered with a given `FlutterEngine`.

  The provided `BinaryMessenger` can be used to communicate with Dart code running in the Flutter context associated with this plugin binding.

  Plugins that need to respond to `Lifecycle` events should implement the additional `ActivityAware` and/or `ServiceAware` interfaces, where a `Lifecycle` reference can be obtained.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `FlutterPluginBinding​(Context applicationContext, FlutterEngine flutterEngine, BinaryMessenger binaryMessenger, TextureRegistry textureRegistry, PlatformViewRegistry platformViewRegistry, FlutterPlugin.FlutterAssets flutterAssets)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Context` | `getApplicationContext()` |
    `BinaryMessenger` | `getBinaryMessenger()` |
    `FlutterPlugin.FlutterAssets` | `getFlutterAssets()` |
    `FlutterEngine` | `getFlutterEngine()` | Deprecated. Use `getBinaryMessenger()`, `getTextureRegistry()`, or `getPlatformViewRegistry()` instead.
    `PlatformViewRegistry` | `getPlatformViewRegistry()` |
    `TextureRegistry` | `getTextureRegistry()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FlutterPluginBinding

          public FlutterPluginBinding​(@NonNull
                                      Context applicationContext,
                                      @NonNull
                                      FlutterEngine flutterEngine,
                                      @NonNull
                                      BinaryMessenger binaryMessenger,
                                      @NonNull
                                      TextureRegistry textureRegistry,
                                      @NonNull
                                      PlatformViewRegistry platformViewRegistry,
                                      @NonNull
                                      FlutterPlugin.FlutterAssets flutterAssets)

  - ### Method Detail

    - #### getApplicationContext

          @NonNull
          public Context getApplicationContext()

    - #### getFlutterEngine

          @Deprecated
          @NonNull
          public FlutterEngine getFlutterEngine()

      Deprecated.
      Use `getBinaryMessenger()`, `getTextureRegistry()`, or `getPlatformViewRegistry()` instead.

    - #### getBinaryMessenger

          @NonNull
          public BinaryMessenger getBinaryMessenger()

    - #### getTextureRegistry

          @NonNull
          public TextureRegistry getTextureRegistry()

    - #### getPlatformViewRegistry

          @NonNull
          public PlatformViewRegistry getPlatformViewRegistry()

    - #### getFlutterAssets

          @NonNull
          public FlutterPlugin.FlutterAssets getFlutterAssets()