5package io.flutter.plugin.platform;
7import static io.flutter.Build.API_LEVELS;
12import android.view.WindowManager;
13import android.view.WindowMetrics;
14import androidx.annotation.NonNull;
15import androidx.annotation.RequiresApi;
17import java.util.concurrent.Executor;
18import java.util.function.Consumer;
36 private static final String TAG =
"PlatformViewsController";
56 Log.
w(
TAG,
"Embedded view called removeViewImmediate while detached from presentation");
59 view.clearAnimation();
66 Log.
w(
TAG,
"Embedded view called addView while detached from presentation");
75 Log.
w(
TAG,
"Embedded view called updateViewLayout while detached from presentation");
84 Log.
w(
TAG,
"Embedded view called removeView while detached from presentation");
94 return delegate.getCurrentWindowMetrics();
101 return delegate.getMaximumWindowMetrics();
107 return delegate.isCrossWindowBlurEnabled();
113 delegate.addCrossWindowBlurEnabledListener(listener);
119 @NonNull Executor executor, @NonNull Consumer<Boolean> listener) {
120 delegate.addCrossWindowBlurEnabledListener(executor, listener);
126 delegate.removeCrossWindowBlurEnabledListener(listener);
static void w(@NonNull String tag, @NonNull String message)
const EmbeddedViewParams * params