DiscoveryConfiguration

data class DiscoveryConfiguration @JvmOverloads constructor(timeout: Int, discoveryMethod: DiscoveryMethod, isSimulated: Boolean, location: String?)

The DiscoveryConfiguration contains configuration information relevant to the reader discovery process.

Use of this SDK is subject to the Stripe Terminal Terms: https://stripe.com/terminal/legal

Constructors

Link copied to clipboard
fun DiscoveryConfiguration(timeout: Int = 0, discoveryMethod: DiscoveryMethod = BLUETOOTH_SCAN, isSimulated: Boolean = false, location: String? = null)

Properties

Link copied to clipboard
val discoveryMethod: DiscoveryMethod

The DiscoveryMethod to use to find connectible readers. Default is BLUETOOTH_SCAN

Link copied to clipboard
val isSimulated: Boolean = false

Whether the devices returned by discovery should be simulated

Link copied to clipboard
val location: String? = null

Location used to scope IP connected readers

Link copied to clipboard
val timeout: Int = 0

The timeout for discovery, in seconds. If the value is 0, discovery will not timeout. Default is 0 (no timeout).