public interface

WindowInsetsControllerCompat.OnControllableInsetsChangedListener

 androidx.core.view.WindowInsetsControllerCompat.OnControllableInsetsChangedListener

Overview

Listener to be notified when the set of controllable WindowInsetsCompat.Type controlled by a WindowInsetsController changes.

Once a WindowInsetsCompat.Type becomes controllable, the app will be able to control the window that is causing this type of insets by calling WindowInsetsControllerCompat.controlWindowInsetsAnimation(int, long, Interpolator, CancellationSignal, WindowInsetsAnimationControlListenerCompat).

Note: When listening to cancellability of the , WindowInsetsControllerCompat.controlWindowInsetsAnimation(int, long, Interpolator, CancellationSignal, WindowInsetsAnimationControlListenerCompat) may still fail in case the decides to cancel the show request. This could happen when there is a hardware keyboard attached.

Summary

Methods
public voidonControllableInsetsChanged(WindowInsetsControllerCompat controller, int typeMask)

Called when the set of controllable WindowInsetsCompat.Type changes.

Methods

public void onControllableInsetsChanged(WindowInsetsControllerCompat controller, int typeMask)

Called when the set of controllable WindowInsetsCompat.Type changes.

Parameters:

controller: The controller for which the set of controllable WindowInsetsCompat.Types are changing.
typeMask: Bitwise behavior type-mask of the WindowInsetsCompat.Types the controller is currently able to control.