Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
<FlutterKeyboardInsetManagerDelegate> Protocol Reference

Manages the calculations and animations for software keyboard insets. More...

#include <FlutterKeyboardInsetManager.h>

Inheritance diagram for <FlutterKeyboardInsetManagerDelegate>:
FlutterViewController() TestKeyboardInsetDelegate

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.
 

Detailed Description

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.

Method Documentation

◆ convertViewRectToScreen:

- (CGRect) convertViewRectToScreen: (CGRect)  rect

Converts a rectangle from the view's coordinate system to the screen's coordinate system.

◆ engine

- (FlutterEngine *) engine

Returns the engine associated with the delegate.

◆ flutterScreenIfViewLoaded

- (UIScreen *) flutterScreenIfViewLoaded

Returns the UIScreen associated with the Flutter view, if the view is loaded.

◆ isPadInSlideOverOrStageManagerMode

- (BOOL) isPadInSlideOverOrStageManagerMode

Returns whether the device is an iPad and in Slide Over or Stage Manager mode.

◆ isViewLoaded

- (BOOL) isViewLoaded

Returns whether the delegate's view is currently loaded.

◆ physicalViewInsetBottom

- (CGFloat) physicalViewInsetBottom

Returns the current physical bottom view inset.

◆ updateViewportMetricsWithInset:

- (void) updateViewportMetricsWithInset: (CGFloat)  inset

Updates the viewport metrics with the new bottom inset.

◆ view

- (UIView *) view

Returns the view associated with the delegate.


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