Class FlutterViewDelegate

java.lang.Object
io.flutter.embedding.android.FlutterViewDelegate

public class FlutterViewDelegate extends Object
A delegate class that performs the task of retrieving the bounding rect values. Logic that is independent of the engine, or that tests must access in the absence of an engine, shall reside within this class.
  • Constructor Details

    • FlutterViewDelegate

      public FlutterViewDelegate()
  • Method Details

    • getWindowInsets

      @RequiresApi(api=23) @VisibleForTesting public WindowInsets getWindowInsets(Context context)
      Return the WindowInsets object for the provided Context. A Context will only have a window if it is an instance of Activity. If context does not have a window, or it is not an activity, this method will return null. Otherwise, this method will return the WindowInsets for the provided activity's window.
    • getCaptionBarInsets

      @RequiresApi(api=35) public List<Rect> getCaptionBarInsets(Context context)
    • growViewportMetricsToCaptionBar

      @RequiresApi(api=35) public void growViewportMetricsToCaptionBar(Context context, FlutterRenderer.ViewportMetrics viewportMetrics)