setMaximumEdges

open fun setMaximumEdges(horizontalMax: Float, verticalMax: Float): AutoScrollHelper(source)

Sets the absolute maximum edge size.

If relative edge size is not specified, activation edges will always be the maximum edge size. If both relative and maximum edges are specified, the maximum edge will be used to constrain the calculated relative edge size.

Return

The scroll helper, which may used to chain setter calls.

Parameters

horizontalMax

The maximum horizontal edge size in pixels, or NO_MAX to use the unconstrained calculated relative value.

verticalMax

The maximum vertical edge size in pixels, or NO_MAX to use the unconstrained calculated relative value.