addAnchorKeyline

@CanIgnoreReturnValue
open fun addAnchorKeyline(offsetLoc: Float, @FloatRange(from = 0.0, to = 1.0) mask: Float, maskedItemSize: Float): KeylineState.Builder

Adds an anchor keyline along the scrolling axis where an object should be masked by the given mask and positioned at offsetLoc.

Anchor keylines are keylines that are added to increase motion of carousel items going out of bounds of the carousel, and are 'anchored' (ie. does not shift). These keylines must be at the start or end of all keylines.

Note that calls to addKeyline and addKeylineRange are added in order. This method should be called first, or last of all the `addKeyline` calls.

Parameters

offsetLoc

The location of this keyline along the scrolling axis. An offsetLoc of 0 will be at the start of the scroll container.

mask

The percentage of a child's full size that it should be masked by when its center is at offsetLoc. 0 is fully unmasked and 1 is fully masked.

maskedItemSize

The total size of this item when masked. This might differ from itemSize - (itemSize * mask) depending on how margins are included in the mask.