# Deprecated API

## Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Enums
- Deprecated Methods
- Deprecated Constructors

- Deprecated Interfaces
  Interface and Description
  io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback See https://flutter.dev/go/android-project-migration for migration details.
  io.flutter.plugin.common.PluginRegistry.Registrar 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
  io.flutter.plugin.common.PluginRegistry.ViewDestroyListener See https://flutter.dev/go/android-project-migration for migration details.

- Deprecated Classes
  Class and Description
  io.flutter.app.FlutterActivity `FlutterActivity` is the new API that now replaces this class. See https://flutter.dev/go/android-project-migration for more migration details.
  io.flutter.app.FlutterActivityDelegate `FlutterActivity` is the new API that now replaces this class and `FlutterActivity`. See https://flutter.dev/go/android-project-migration for more migration details.
  io.flutter.app.FlutterFragmentActivity this class is replaced by `FlutterFragmentActivity`.
  io.flutter.view.FlutterMain Replaced by `FlutterLoader`.
  io.flutter.view.FlutterNativeView `FlutterView` is the new API that now replaces this class. See https://flutter.dev/go/android-project-migration for more migration details.
  io.flutter.app.FlutterPluginRegistry See https://flutter.dev/go/android-project-migration for migration instructions.
  io.flutter.view.FlutterView `FlutterView` is the new API that now replaces this class. See https://flutter.dev/go/android-project-migration for more migration details.

- Deprecated Enums
  Enum and Description
  io.flutter.embedding.android.FlutterView.RenderMode
  io.flutter.embedding.android.FlutterView.TransparencyMode

- Deprecated Methods
  Method and Description
  io.flutter.embedding.engine.plugins.activity.ActivityControlSurface.attachToActivity(Activity, Lifecycle) Prefer using the `ActivityControlSurface.attachToActivity(ExclusiveAppComponent, Lifecycle)` API to avoid situations where multiple activities are driving the FlutterEngine simultaneously. See https://github.com/flutter/flutter/issues/66192.
  io.flutter.view.FlutterView.enableTransparentBackground() FlutterView in the v1 embedding is always a SurfaceView and will cover accessibility highlights when transparent. Consider migrating to the v2 Android embedding, using `FlutterView.RenderMode.texture`, and setting `FlutterView.TransparencyMode.transparent`. See also https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects.
  io.flutter.view.FlutterMain.findAppBundlePath(Context)
  io.flutter.embedding.engine.plugins.FlutterPlugin.FlutterPluginBinding.getFlutterEngine() Use `getBinaryMessenger()`, `getTextureRegistry()`, or `getPlatformViewRegistry()` instead.
  io.flutter.embedding.engine.loader.FlutterLoader.getInstance() Use the `FlutterInjector` instead.
  io.flutter.plugin.common.PluginRegistry.hasPlugin(String) See https://flutter.dev/go/android-project-migration for migration details.
  io.flutter.embedding.engine.FlutterJNI.nativeInit(Context, String[], String, String, String, long) Use `FlutterJNI.init(Context, String[], String, String, String, long)` instead.
  io.flutter.embedding.engine.FlutterJNI.nativePrefetchDefaultFontManager() Use `FlutterJNI.prefetchDefaultFontManager()` instead.
  io.flutter.plugin.common.PluginRegistry.registrarFor(String) See https://flutter.dev/go/android-project-migration for migration details.
  io.flutter.embedding.engine.dart.DartExecutor.send(String, ByteBuffer) Use `DartExecutor.getBinaryMessenger()` instead.
  io.flutter.embedding.engine.dart.DartExecutor.send(String, ByteBuffer, BinaryMessenger.BinaryReply) Use `DartExecutor.getBinaryMessenger()` instead.
  io.flutter.embedding.engine.dart.DartExecutor.setMessageHandler(String, BinaryMessenger.BinaryMessageHandler) Use `DartExecutor.getBinaryMessenger()` instead.
  io.flutter.plugin.common.PluginRegistry.valuePublishedByPlugin(String) See https://flutter.dev/go/android-project-migration for migration details.

- Deprecated Constructors
  Constructor and Description
  io.flutter.embedding.android.FlutterView(Context, FlutterView.RenderMode)
  io.flutter.embedding.android.FlutterView(Context, FlutterView.RenderMode, FlutterView.TransparencyMode)
  io.flutter.embedding.android.FlutterView(Context, FlutterView.TransparencyMode)