WindowBackend
interface WindowBackend
Backing interface for WindowManager instances that serve as the default information supplier.
Summary
Public methods |
|
|---|---|
abstract void |
registerLayoutChangeCallback(Registers a callback for layout changes of the window for the supplied |
abstract void |
unregisterLayoutChangeCallback(Unregisters a callback for window layout changes of the |
Public methods
registerLayoutChangeCallback
@NonNull
public abstract void registerLayoutChangeCallback(
@NonNull Activity activity,
@NonNull Executor executor,
@NonNull Consumer<@NonNull WindowLayoutInfo> callback
)
Registers a callback for layout changes of the window for the supplied Activity. Must be called only after the it is attached to the window.
unregisterLayoutChangeCallback
@NonNull
public abstract void unregisterLayoutChangeCallback(
@NonNull Consumer<@NonNull WindowLayoutInfo> callback
)
Unregisters a callback for window layout changes of the Activity window.