CGA_ScannerViewController

protocol CGA_ScannerViewController

This will allow us to “reflect” on the main view controller, without needing to look at the entire class.

  • This is a method to restart scanning, if it was running beforehand. If not, nothing happens.

    Declaration

    Swift

    func restartScanningIfNecessary()
  • Used as a semaphore (yuck) to indicate that the Central was (or was not) scanning before the view disappeared. It is also used for editing the table, to prevent it from aborting deletes.

    Declaration

    Swift

    var wasScanning: Bool { get }