Manages the calculations and animations for software keyboard insets. More...
#include <FlutterKeyboardInsetManager.h>
Instance Methods | |
| (void) | - updateViewportMetricsWithInset: |
| Updates the viewport metrics with the new bottom inset. | |
| (CGFloat) | - physicalViewInsetBottom |
| Returns the current physical bottom view inset. | |
| (UIView *) | - view |
| Returns the view associated with the delegate. | |
| (FlutterEngine *) | - engine |
| Returns the engine associated with the delegate. | |
| (UIScreen *) | - flutterScreenIfViewLoaded |
| Returns the UIScreen associated with the Flutter view, if the view is loaded. | |
| (BOOL) | - isPadInSlideOverOrStageManagerMode |
| Returns whether the device is an iPad and in Slide Over or Stage Manager mode. | |
| (CGRect) | - convertViewRectToScreen: |
| Converts a rectangle from the view's coordinate system to the screen's coordinate system. | |
| (BOOL) | - isViewLoaded |
| Returns whether the delegate's view is currently loaded. | |
Manages the calculations and animations for software keyboard insets.
This class is responsible for observing keyboard notifications, calculating the appropriate insets for the Flutter view based on the keyboard mode (docked, floating, hidden), and animating the transition of the insets.
Definition at line 20 of file FlutterKeyboardInsetManager.h.
| - (CGRect) convertViewRectToScreen: | (CGRect) | rect |
Converts a rectangle from the view's coordinate system to the screen's coordinate system.
| - (FlutterEngine *) engine |
Returns the engine associated with the delegate.
| - (UIScreen *) flutterScreenIfViewLoaded |
Returns the UIScreen associated with the Flutter view, if the view is loaded.
| - (BOOL) isPadInSlideOverOrStageManagerMode |
Returns whether the device is an iPad and in Slide Over or Stage Manager mode.
| - (BOOL) isViewLoaded |
Returns whether the delegate's view is currently loaded.
| - (CGFloat) physicalViewInsetBottom |
Returns the current physical bottom view inset.
| - (void) updateViewportMetricsWithInset: | (CGFloat) | inset |
Updates the viewport metrics with the new bottom inset.
| - (UIView *) view |
Returns the view associated with the delegate.