Themes selection

The Themes Selection allows to choose LEDs sequences that are played on S550 or S370 devices.

There are 4 pre-programmed themes contained in the devices:

  • Health

  • Access

  • Value

  • Membership

Each theme has 4 sequences:

  • Ready: when the device is idle, waiting for reading a barcode or a NFC tag

  • Reading: when the device is reading a barcode or a NFC tag

  • Read success: when the device did read correctly a barcode or a NFC tag

  • Read failure: when the device did not read correctly a barcode or a NFC tag

Note

Both devices of the S370 can have their own theme. For instance, Access for the NFC reader and Health for the Barcode scanner. To choose on which device yuo set a theme, use the SKTCaptureThemeSelectionMask value.

Note

The Read success and failure can be controlled by the users in a future release of CaptureSDK through Remote Acknowledgment.

Select a theme

Here is a code showing how to select a theme for the NFC reader after having set it as a variable in didNotifyArrivalForDevice delegate:

if let device = nfcDevice as CaptureHelperDevice! {
  device.setThemeSelection(SKTCaptureThemeSelectionMask.nfc, themes: [.none, .health, .none], withCompletionHandler: { result in
      print("---> NFC set theme to Health result: \(result.rawValue)")
  })
}

Here is a code showing how to select a theme for the Barcode scanner after having set it as a variable in didNotifyArrivalForDevice delegate:

if let device = barcodeScanner as CaptureHelperDevice! {
  device.setThemeSelection(SKTCaptureThemeSelectionMask.barcode, themes: [.none, .none, .membership], withCompletionHandler: { result in
      print("---> Barcode set theme to Membership result: \(result.rawValue)")
  })
}

Here is a code showing how to select the themes for both the NFC reader and Barcode scanner at the same time after having set them as variables in didNotifyArrivalForDevice delegate:

if let device = nfcDevice as CaptureHelperDevice! {
  device.setThemeSelection(SKTCaptureThemeSelectionMask.nfcBarcode, themes: [.none, .health, .value], withCompletionHandler: { result in
      print("---> NFC set theme to Helath and Barcode to Value result: \(result.rawValue)")
  })
}

Note

You should not expect the current sequence to be affected. You will have to trigger a new read again to see the new sequence.