Package io.flutter.app
Class FlutterPluginRegistry
java.lang.Object
io.flutter.app.FlutterPluginRegistry
- All Implemented Interfaces:
PluginRegistry,PluginRegistry.ActivityResultListener,PluginRegistry.NewIntentListener,PluginRegistry.RequestPermissionsResultListener,PluginRegistry.UserLeaveHintListener,PluginRegistry.ViewDestroyListener,PluginRegistry.WindowFocusChangedListener
@Deprecated
public class FlutterPluginRegistry
extends Object
implements PluginRegistry, PluginRegistry.RequestPermissionsResultListener, PluginRegistry.ActivityResultListener, PluginRegistry.NewIntentListener, PluginRegistry.WindowFocusChangedListener, PluginRegistry.UserLeaveHintListener, PluginRegistry.ViewDestroyListener
Deprecated.
See https://flutter.dev/go/android-project-migration for migration instructions.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.flutter.plugin.common.PluginRegistry
PluginRegistry.ActivityResultListener, PluginRegistry.NewIntentListener, PluginRegistry.PluginRegistrantCallback, PluginRegistry.Registrar, PluginRegistry.RequestPermissionsResultListener, PluginRegistry.UserLeaveHintListener, PluginRegistry.ViewDestroyListener, PluginRegistry.WindowFocusChangedListener -
Constructor Summary
ConstructorsConstructorDescriptionFlutterPluginRegistry(FlutterEngine engine, Context context) Deprecated.FlutterPluginRegistry(FlutterNativeView nativeView, Context context) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidattach(FlutterView flutterView, Activity activity) Deprecated.voiddestroy()Deprecated.voiddetach()Deprecated.Deprecated.booleanDeprecated.Returns whether the specified plugin is known to this registry.booleanonActivityResult(int requestCode, int resultCode, Intent data) Deprecated.booleanonNewIntent(Intent intent) Deprecated.voidDeprecated.booleanonRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) Deprecated.voidDeprecated.booleanDeprecated.voidonWindowFocusChanged(boolean hasFocus) Deprecated.registrarFor(String pluginKey) Deprecated.Returns aPluginRegistry.Registrarfor receiving the registrations pertaining to the specified plugin.<T> TvaluePublishedByPlugin(String pluginKey) Deprecated.Returns the value published by the specified plugin, if any.
-
Constructor Details
-
FlutterPluginRegistry
Deprecated. -
FlutterPluginRegistry
Deprecated.
-
-
Method Details
-
hasPlugin
Deprecated.Description copied from interface:PluginRegistryReturns whether the specified plugin is known to this registry.- Specified by:
hasPluginin interfacePluginRegistry- Parameters:
key- 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.Description copied from interface:PluginRegistryReturns 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.
- Specified by:
valuePublishedByPluginin interfacePluginRegistry- 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.
-
registrarFor
Deprecated.Description copied from interface:PluginRegistryReturns aPluginRegistry.Registrarfor receiving the registrations pertaining to the specified plugin.- Specified by:
registrarForin interfacePluginRegistry- Parameters:
pluginKey- a unique String identifying the plugin; typically the fully qualified name of the plugin's main class.- Returns:
- A
PluginRegistry.Registrarfor receiving the registrations pertianing to the specified plugin.
-
attach
Deprecated. -
detach
public void detach()Deprecated. -
onPreEngineRestart
public void onPreEngineRestart()Deprecated. -
getPlatformViewsController
Deprecated. -
onRequestPermissionsResult
public boolean onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) Deprecated.- Specified by:
onRequestPermissionsResultin interfacePluginRegistry.RequestPermissionsResultListener- Parameters:
requestCode- The request code passed inActivityCompat.requestPermissions(android.app.Activity, String[], int).permissions- The requested permissions.grantResults- The grant results for the corresponding permissions which is eitherPackageManager.PERMISSION_GRANTEDorPackageManager.PERMISSION_DENIED.- Returns:
- true if the result has been handled.
-
onActivityResult
Deprecated.- Specified by:
onActivityResultin interfacePluginRegistry.ActivityResultListener- Parameters:
requestCode- The integer request code originally supplied tostartActivityForResult(), allowing you to identify who this result came from.resultCode- The integer result code returned by the child activity through itssetResult().data- An Intent, which can return result data to the caller (various data can be attached to Intent "extras").- Returns:
- true if the result has been handled.
-
onNewIntent
Deprecated.- Specified by:
onNewIntentin interfacePluginRegistry.NewIntentListener- Parameters:
intent- The new intent that was started for the activity.- Returns:
- true if the new intent has been handled.
-
onUserLeaveHint
public void onUserLeaveHint()Deprecated.- Specified by:
onUserLeaveHintin interfacePluginRegistry.UserLeaveHintListener
-
onWindowFocusChanged
public void onWindowFocusChanged(boolean hasFocus) Deprecated.- Specified by:
onWindowFocusChangedin interfacePluginRegistry.WindowFocusChangedListener
-
onViewDestroy
Deprecated.- Specified by:
onViewDestroyin interfacePluginRegistry.ViewDestroyListener
-
destroy
public void destroy()Deprecated.
-