O Google tem o compromisso de promover a igualdade racial para as comunidades negras. Saiba como.

WindowBackend

public interface WindowBackend

androidx.window.WindowBackend


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

Summary

Public methods

abstract void registerDeviceStateChangeCallback(Executor executor, Consumer<DeviceState> callback)

Registers a callback for device state changes.

abstract void registerLayoutChangeCallback(Activity activity, Executor executor, Consumer<WindowLayoutInfo> callback)

Registers a callback for layout changes of the window for the supplied Activity.

abstract void registerLayoutChangeCallback(Context context, Executor executor, Consumer<WindowLayoutInfo> callback)

This method is deprecated. will be removed in the next alpha.

abstract void unregisterDeviceStateChangeCallback(Consumer<DeviceState> callback)

Unregisters a callback for device state changes.

abstract void unregisterLayoutChangeCallback(Consumer<WindowLayoutInfo> callback)

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

Public methods

registerDeviceStateChangeCallback

public abstract void registerDeviceStateChangeCallback (Executor executor, 
                Consumer<DeviceState> callback)

Registers a callback for device state changes.

Parameters
executor Executor

callback Consumer

registerLayoutChangeCallback

public abstract void registerLayoutChangeCallback (Activity activity, 
                Executor executor, 
                Consumer<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.

Parameters
activity Activity

executor Executor

callback Consumer

registerLayoutChangeCallback

public abstract void registerLayoutChangeCallback (Context context, 
                Executor executor, 
                Consumer<WindowLayoutInfo> callback)

This method is deprecated.
will be removed in the next alpha.

Registers a callback for layout changes of the window for Activity associated with the supplied Context. Must be called only after the it is attached to the window.

Parameters
context Context

executor Executor

callback Consumer

unregisterDeviceStateChangeCallback

public abstract void unregisterDeviceStateChangeCallback (Consumer<DeviceState> callback)

Unregisters a callback for device state changes.

Parameters
callback Consumer

unregisterLayoutChangeCallback

public abstract void unregisterLayoutChangeCallback (Consumer<WindowLayoutInfo> callback)

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

Parameters
callback Consumer