Flutter Engine
The Flutter Engine
|
Public Member Functions | |
BackGestureChannel (@NonNull DartExecutor dartExecutor) | |
void | startBackGesture (@NonNull BackEvent backEvent) |
void | updateBackGestureProgress (@NonNull BackEvent backEvent) |
void | commitBackGesture () |
void | cancelBackGesture () |
void | setMethodCallHandler (@Nullable MethodChannel.MethodCallHandler handler) |
Public Attributes | |
final MethodChannel | channel |
A MethodChannel
for communicating back gesture events to the Flutter framework.
The BackGestureChannel facilitates communication between the platform-specific Android back gesture handling code and the Flutter framework. It enables the dispatch of back gesture events such as start, progress, commit, and cancellation from the platform to the Flutter application.
Definition at line 29 of file BackGestureChannel.java.
|
inline |
Constructs a BackGestureChannel.
dartExecutor | The DartExecutor used to establish communication with the Flutter framework. |
Definition at line 40 of file BackGestureChannel.java.
|
inline |
Cancels the back gesture event.
This method should be called when a back gesture is cancelled or the back button is pressed.
Definition at line 104 of file BackGestureChannel.java.
|
inline |
Commits the back gesture event.
This method should be called to signify the completion of a back gesture event and commit the navigation action initiated by the gesture.
Definition at line 92 of file BackGestureChannel.java.
|
inline |
Sets a method call handler for the channel.
handler | The handler to set for the channel. |
Definition at line 114 of file BackGestureChannel.java.
|
inline |
Initiates a back gesture event.
This method should be called when the back gesture is initiated by the user.
backEvent | The BackEvent object containing information about the touch. |
Definition at line 65 of file BackGestureChannel.java.
|
inline |
Updates the progress of a back gesture event.
This method should be called to update the progress of an ongoing back gesture event.
backEvent | An BackEvent object describing the progress event. |
Definition at line 79 of file BackGestureChannel.java.
final MethodChannel io.flutter.embedding.engine.systemchannels.BackGestureChannel.channel |
Definition at line 32 of file BackGestureChannel.java.