front

Creates a Front.Static animation anchored at one of the predefined Front.NfcFrontPosition positions on the screen.

Parameters

position

Predefined NFC position on the screen.


@JvmStatic
fun front(xBias: Float = DEFAULT_X_BIAS, yBias: Float = DEFAULT_Y_BIAS): MerchantUiParameters.KioskModeUiParameters.TapToPayKioskAnimationType.Front

Creates a Front.Dynamic animation positioned using fractional biases, allowing fine-grained placement anywhere on the screen.

Parameters

xBias

Horizontal bias in the range [0f, 1f], where 0f is the left edge and 1f is the right edge. Defaults to centered horizontally (0.5f).

yBias

Vertical bias in the range [0f, 1f], where 0f is the top edge and 1f is the bottom edge. Defaults to the bottom 3/4 baseline (0.75f).

Throws

IllegalArgumentException

if xBias or yBias is outside the inclusive [0f, 1f] range.