Package io.flutter.embedding.android
Class FlutterViewDelegate
java.lang.Object
io.flutter.embedding.android.FlutterViewDelegate
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCaptionBarInsets
(Context context) getWindowInsets
(Context context) Return the WindowInsets object for the provided Context.void
growViewportMetricsToCaptionBar
(Context context, FlutterRenderer.ViewportMetrics viewportMetrics)
-
Constructor Details
-
FlutterViewDelegate
public FlutterViewDelegate()
-
-
Method Details
-
getWindowInsets
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
-
growViewportMetricsToCaptionBar
@RequiresApi(api=35) public void growViewportMetricsToCaptionBar(Context context, FlutterRenderer.ViewportMetrics viewportMetrics)
-