SCPSimulatorConfiguration

Objective-C


@interface SCPSimulatorConfiguration : NSObject

Swift

class SimulatorConfiguration : NSObject

Simulator specific configurations you can set to test your integration’s behavior in different scenarios. We recommend changing these properties during testing to ensure your app works as expected for different reader updates and for different presented cards.

Do not create new instances of this class. Instead, set the properties via SCPTerminal.shared.simulatorConfiguration.

  • Set this to different values of the SCPSimulateReaderUpdate enum to test your integration with different reader software update scenarios.

    Note

    This is only valid for simulated Bluetooth readers.

    Declaration

    Objective-C

    @property (nonatomic) SCPSimulateReaderUpdate availableReaderUpdate;

    Swift

    var availableReaderUpdate: SimulateReaderUpdate { get set }
  • Create a SCPSimulatedCard and set it on the shared configuration object to test your integration with different card brands and in error scenarios.

    Note

    This currently only supports simulated Bluetooth readers.

    Declaration

    Objective-C

    @property (nonatomic) SCPSimulatedCard *_Nonnull simulatedCard;

    Swift

    var simulatedCard: SimulatedCard { get set }
  • Unavailable

    You cannot directly instantiate this class. Set exposed properties via SCPTerminal.shared.simulatorConfiguration

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Unavailable

    You cannot directly instantiate this class. Set exposed properties via SCPTerminal.shared.simulatorConfiguration

    Declaration

    Objective-C

    + (nonnull instancetype)new;