onRequestChildRectangleOnScreen

open fun onRequestChildRectangleOnScreen(@NonNull coordinatorLayout: @NonNull CoordinatorLayout, @NonNull child: @NonNull V, @NonNull rectangle: @NonNull Rect, immediate: Boolean): Boolean(source)

Called when a child of the view associated with this behavior wants a particular rectangle to be positioned onto the screen.

The contract for this method is the same as requestChildRectangleOnScreen.

Return

true if the Behavior handled the request

Parameters

coordinatorLayout

the CoordinatorLayout parent of the view this Behavior is associated with

child

the child view of the CoordinatorLayout this Behavior is associated with

rectangle

The rectangle which the child wishes to be on the screen in the child's coordinates

immediate

true to forbid animated or delayed scrolling, false otherwise

See also