WindowBackend

interface WindowBackend


Backing interface for WindowManager instances that serve as the default information supplier.

Summary

Public methods

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.

abstract void

Unregisters a callback for window layout changes of the Activity window.

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.