SCPDiscoveryConfiguration

Objective-C

@protocol SCPDiscoveryConfiguration <NSObject>

Swift

protocol DiscoveryConfiguration : NSObjectProtocol

Protocol for classes to conform to that apply configuration options for discovering readers.

You should not implement this protocol yourself; instead, use one of the following:

Objects of those types get passed into the Terminal.shared.discoverReaders() method to control which devices get discovered, and how.

  • The method by which to discover readers.

    Declaration

    Objective-C

    @property (nonatomic, readonly) SCPDiscoveryMethod discoveryMethod;

    Swift

    var discoveryMethod: DiscoveryMethod { get }
  • Whether to use simulated discovery to discover a device simulator.

    The Terminal SDK comes with the ability to simulate behavior without using physical hardware. This makes it easy to quickly test your integration end-to-end, from pairing with a reader to taking payments.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL simulated;

    Swift

    var simulated: Bool { get }