Package io.flutter.embedding.android
Class WindowInfoRepositoryCallbackAdapterWrapper
java.lang.Object
io.flutter.embedding.android.WindowInfoRepositoryCallbackAdapterWrapper
Wraps
WindowInfoTrackerCallbackAdapter
in order to be able to mock it during testing.-
Constructor Summary
ConstructorDescriptionWindowInfoRepositoryCallbackAdapterWrapper
(androidx.window.java.layout.WindowInfoTrackerCallbackAdapter adapter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addWindowLayoutInfoListener
(Activity activity, Executor executor, androidx.core.util.Consumer<androidx.window.layout.WindowLayoutInfo> consumer) void
removeWindowLayoutInfoListener
(androidx.core.util.Consumer<androidx.window.layout.WindowLayoutInfo> consumer)
-
Constructor Details
-
WindowInfoRepositoryCallbackAdapterWrapper
public WindowInfoRepositoryCallbackAdapterWrapper(@NonNull androidx.window.java.layout.WindowInfoTrackerCallbackAdapter adapter)
-
-
Method Details
-
addWindowLayoutInfoListener
-
removeWindowLayoutInfoListener
public void removeWindowLayoutInfoListener(@NonNull androidx.core.util.Consumer<androidx.window.layout.WindowLayoutInfo> consumer)
-