UsbDiscoveryConfiguration

data class UsbDiscoveryConfiguration(val timeout: Int = 0, val isSimulated: Boolean = false) : DiscoveryConfiguration

Allows the user to use the device's USB input(s) to interact with Stripe Terminal's USB-capable readers.

When discovering readers using this method, DiscoveryListener.onUpdateDiscoveredReaders will be called every time a compatible device is plugged in or unplugged.

Parameters

timeout

The timeout for discovery, in seconds. If the value is 0, discovery will not specify a timeout.

isSimulated

Whether the devices returned by discovery should be simulated.

Constructors

Link copied to clipboard
constructor(timeout: Int = 0, isSimulated: Boolean = false)

Properties

Link copied to clipboard
val isSimulated: Boolean = false
Link copied to clipboard
val timeout: Int = 0