SCPReader


@interface SCPReader : NSObject <SCPJSONDecodable>

Information about a reader that has been discovered or connected to the SDK. Note some of the properties are specific to a certain device type and are labeled as such. If a property does not call out a specific device then it is applicable to all device types.

  • The IP address of the reader. (Verifone P400 only.)

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *ipAddress;
  • The location ID of the reader. (Verifone P400 only.)

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *locationId;
  • The networking status of the reader: either offline or online. Note that the Chipper 2X and the WisePad 3’s statuses will always be offline. (Verifone P400 only.)

    Declaration

    Objective-C

    @property (nonatomic, readonly) SCPReaderNetworkStatus status;
  • A custom label that may be given to a reader for easier identification. (Verifone P400 only.)

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *label;
  • The reader’s battery level, represented as a boxed float in the range [0, 1]. If the reader does not have a battery, or the battery level is unknown, this value is nil. (Chipper 2X and WisePad 3 only.)

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *batteryLevel;
  • The Stripe unique identifier for the reader.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *stripeId;
  • The reader’s device type.

    Declaration

    Objective-C

    @property (nonatomic, readonly) SCPDeviceType deviceType;
  • True if this is a simulated reader.

    SCPDiscoveryConfiguration objects with simulated set to true produce simulated readers.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL simulated;
  • The reader’s serial number.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull serialNumber;
  • The reader’s current device software version, or nil if this information is unavailable.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *deviceSoftwareVersion;
  • Unavailable

    You cannot directly instantiate this class.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Unavailable

    You cannot directly instantiate this class.

    Declaration

    Objective-C

    + (nonnull instancetype)new;