Flutter Engine
The Flutter Engine
Public Member Functions | Package Attributes | List of all members
io.flutter.embedding.android.WindowInfoRepositoryCallbackAdapterWrapper Class Reference

Public Member Functions

 WindowInfoRepositoryCallbackAdapterWrapper ( @NonNull WindowInfoTrackerCallbackAdapter adapter)
 
void addWindowLayoutInfoListener ( @NonNull Activity activity, @NonNull Executor executor, @NonNull Consumer< WindowLayoutInfo > consumer)
 
void removeWindowLayoutInfoListener (@NonNull Consumer< WindowLayoutInfo > consumer)
 

Package Attributes

final WindowInfoTrackerCallbackAdapter adapter
 

Detailed Description

Wraps WindowInfoTrackerCallbackAdapter in order to be able to mock it during testing.

Definition at line 15 of file WindowInfoRepositoryCallbackAdapterWrapper.java.

Constructor & Destructor Documentation

◆ WindowInfoRepositoryCallbackAdapterWrapper()

io.flutter.embedding.android.WindowInfoRepositoryCallbackAdapterWrapper.WindowInfoRepositoryCallbackAdapterWrapper ( @NonNull WindowInfoTrackerCallbackAdapter  adapter)
inline

Member Function Documentation

◆ addWindowLayoutInfoListener()

void io.flutter.embedding.android.WindowInfoRepositoryCallbackAdapterWrapper.addWindowLayoutInfoListener ( @NonNull Activity  activity,
@NonNull Executor  executor,
@NonNull Consumer< WindowLayoutInfo >  consumer 
)
inline

Definition at line 24 of file WindowInfoRepositoryCallbackAdapterWrapper.java.

27 {
28 adapter.addWindowLayoutInfoListener(activity, executor, consumer);
29 }

◆ removeWindowLayoutInfoListener()

void io.flutter.embedding.android.WindowInfoRepositoryCallbackAdapterWrapper.removeWindowLayoutInfoListener ( @NonNull Consumer< WindowLayoutInfo >  consumer)
inline

Definition at line 31 of file WindowInfoRepositoryCallbackAdapterWrapper.java.

31 {
32 adapter.removeWindowLayoutInfoListener(consumer);
33 }

Member Data Documentation

◆ adapter

final WindowInfoTrackerCallbackAdapter io.flutter.embedding.android.WindowInfoRepositoryCallbackAdapterWrapper.adapter
package

The documentation for this class was generated from the following file: