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");
90 @RequiresApi(api = API_LEVELS.API_30)
94 return delegate.getCurrentWindowMetrics();
97 @RequiresApi(api = API_LEVELS.API_30)
101 return delegate.getMaximumWindowMetrics();
104 @RequiresApi(api = API_LEVELS.API_31)
107 return delegate.isCrossWindowBlurEnabled();
110 @RequiresApi(api = API_LEVELS.API_31)
113 delegate.addCrossWindowBlurEnabledListener(listener);
116 @RequiresApi(api = API_LEVELS.API_31)
119 @NonNull Executor executor, @NonNull Consumer<Boolean> listener) {
120 delegate.addCrossWindowBlurEnabledListener(executor, listener);
123 @RequiresApi(api = API_LEVELS.API_31)
126 delegate.removeCrossWindowBlurEnabledListener(listener);
static void w(@NonNull String tag, @NonNull String message)
const EmbeddedViewParams * params