# Deprecated API

## Contents

- Terminally Deprecated
- Interfaces
- Classes
- Methods
- Constructors

- Terminally Deprecated Elements
  Element
  Description
  io.flutter.view.TextureRegistry.SurfaceProducer.Callback.onSurfaceCreated()
  Override and use `TextureRegistry.SurfaceProducer.Callback.onSurfaceAvailable()` instead.

- Deprecated Interfaces
  Interface
  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
  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.app.FlutterPluginRegistry
  See https://flutter.dev/go/android-project-migration for migration instructions.
  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.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 Methods
  Method
  Description
  io.flutter.embedding.engine.dart.DartExecutor.disableBufferingIncomingMessages()
  Use `DartExecutor.getBinaryMessenger()` instead.
  io.flutter.embedding.engine.dart.DartExecutor.enableBufferingIncomingMessages()
  Use `DartExecutor.getBinaryMessenger()` instead.
  io.flutter.embedding.engine.dart.DartExecutor.makeBackgroundTaskQueue(BinaryMessenger.TaskQueueOptions)
  Use `DartExecutor.getBinaryMessenger()` instead.
  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.embedding.engine.dart.DartExecutor.setMessageHandler(String, BinaryMessenger.BinaryMessageHandler, BinaryMessenger.TaskQueue)
  Use `DartExecutor.getBinaryMessenger()` instead.
  io.flutter.embedding.engine.FlutterJNI.getObservatoryUri()
  replaced by `FlutterJNI.getVMServiceUri()`.
  io.flutter.embedding.engine.FlutterJNI.nativeLookupCallbackInformation(long)
  io.flutter.embedding.engine.plugins.FlutterPlugin.FlutterPluginBinding.getFlutterEngine()
  Use `getBinaryMessenger()`, `getTextureRegistry()`, or `getPlatformViewRegistry()` instead.
  io.flutter.plugin.common.PluginRegistry.hasPlugin(String)
  See https://flutter.dev/go/android-project-migration for migration details.
  io.flutter.plugin.common.PluginRegistry.registrarFor(String)
  See https://flutter.dev/go/android-project-migration for migration details.
  io.flutter.plugin.common.PluginRegistry.valuePublishedByPlugin(String)
  See https://flutter.dev/go/android-project-migration for migration details.
  io.flutter.view.FlutterMain.findAppBundlePath(Context)
  io.flutter.view.FlutterNativeView.getObservatoryUri()
  io.flutter.view.TextureRegistry.SurfaceProducer.Callback.onSurfaceCreated()
  Override and use `TextureRegistry.SurfaceProducer.Callback.onSurfaceAvailable()` instead.

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