Class WindowInfoRepositoryCallbackAdapterWrapper


  • public class WindowInfoRepositoryCallbackAdapterWrapper
    extends Object
    Wraps WindowInfoTrackerCallbackAdapter in order to be able to mock it during testing.
    • Constructor Detail

      • WindowInfoRepositoryCallbackAdapterWrapper

        public WindowInfoRepositoryCallbackAdapterWrapper​(@NonNull
                                                          androidx.window.java.layout.WindowInfoTrackerCallbackAdapter adapter)
    • Method Detail

      • addWindowLayoutInfoListener

        public void addWindowLayoutInfoListener​(@NonNull
                                                Activity activity,
                                                @NonNull
                                                Executor executor,
                                                @NonNull
                                                androidx.core.util.Consumer<androidx.window.layout.WindowLayoutInfo> consumer)
      • removeWindowLayoutInfoListener

        public void removeWindowLayoutInfoListener​(@NonNull
                                                   androidx.core.util.Consumer<androidx.window.layout.WindowLayoutInfo> consumer)