ScannerApp-Swift Documentation

Structure Helper

struct Helper  

various helper methods

Methods

boot​Time()

static func bootTime() -> Double?  

get the last time that the ios device was booted

calculate​Checksum(url:​)

static func calculateChecksum(url: URL) -> String?  

calculate md5 checksum for large files

get​Device​Model​Code()

static func getDeviceModelCode() -> String  

get​Gps​Location(location​Manager:​)

static func getGpsLocation(locationManager: CLLocationManager) -> [Double]  

get​Recording​Id()

static func getRecordingId() -> String  

generate an id for the scene based on time and device id

get​Recording​Data​Directory​Path(recording​Id:​)

static func getRecordingDataDirectoryPath(recordingId: String) -> String  

show​Toast(controller:​message:​seconds:​)

static func showToast(controller: UIViewController, message : String, seconds: Double)  

display a toast message