Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
io.flutter.plugin.platform.PlatformPlugin.PlatformPluginDelegate Interface Reference

Public Member Functions

boolean popSystemNavigator ()
 
default void setFrameworkHandlesBack (boolean frameworkHandlesBack)
 

Detailed Description

The PlatformPlugin generally has default behaviors implemented for platform functionalities requested by the Flutter framework. However, functionalities exposed through this interface could be customized by the more public-facing APIs that implement this interface such as the io.flutter.embedding.android.FlutterActivity or the io.flutter.embedding.android.FlutterFragment.

Definition at line 54 of file PlatformPlugin.java.

Member Function Documentation

◆ popSystemNavigator()

boolean io.flutter.plugin.platform.PlatformPlugin.PlatformPluginDelegate.popSystemNavigator ( )

Allow implementer to customize the behavior needed when the Flutter framework calls to pop the Android-side navigation stack.

Returns
true if the implementation consumed the pop signal. If false, a default behavior of finishing the activity or sending the signal to androidx.activity.OnBackPressedDispatcher will be executed.

◆ setFrameworkHandlesBack()

default void io.flutter.plugin.platform.PlatformPlugin.PlatformPluginDelegate.setFrameworkHandlesBack ( boolean  frameworkHandlesBack)
inline

The Flutter application would or would not like to handle navigation pop events itself.

Relevant for registering and unregistering the app's OnBackInvokedCallback for the Predictive Back feature, for example as in io.flutter.embedding.android.FlutterActivity.

Definition at line 72 of file PlatformPlugin.java.

72{}

The documentation for this interface was generated from the following file: