TapZone

sealed interface TapZone : Parcelable

Configuration for the tap zone on the Tap to Pay reader. The tap zone is the area on the reader where the customer should tap their payment method.

Inheritors

Types

Link copied to clipboard
data class Above @JvmOverloads constructor(val bias: Float = 0.5f) : TapToPayUxConfiguration.TapZone

The tap zone is above the screen, and the indicator is an arrow pointing up.

Link copied to clipboard
data class Behind(val xBias: Float, val yBias: Float) : TapToPayUxConfiguration.TapZone

The payment method should be tapped on the back of the device.

Link copied to clipboard
data class Below @JvmOverloads constructor(val bias: Float = 0.5f) : TapToPayUxConfiguration.TapZone

The tap zone is below the screen, and the indicator is an arrow pointing down.

Link copied to clipboard

The best tap zone will be chosen automatically based on the device being used.

Link copied to clipboard
data class Front(val xBias: Float, val yBias: Float) : TapToPayUxConfiguration.TapZone

The payment method should be tapped on the screen.

Link copied to clipboard
data class Left @JvmOverloads constructor(val bias: Float = 0.5f) : TapToPayUxConfiguration.TapZone

The tap zone is to the left of the screen, and the indicator is an arrow pointing leftward.

Link copied to clipboard
data class Right @JvmOverloads constructor(val bias: Float = 0.5f) : TapToPayUxConfiguration.TapZone

The tap zone is to the right of the screen, and the indicator is an arrow pointing rightward.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)