RVS_BTDriver_OBD_MacOS_Test_Harness_Base_ViewController
class RVS_BTDriver_OBD_MacOS_Test_Harness_Base_ViewController : NSViewController, RVS_BTDriver_DeviceSubscriberProtocol, RVS_BTDriver_OBD_DeviceDelegate
This class provides some common tools for all view controllers.
-
This will be used to hold an automatically-generated UUID for this subscriber.
Declaration
Swift
var _uuid: UUID!
-
Error reporting method.
Declaration
Swift
public func subscribedDevice(_ inDevice: RVS_BTDriver_DeviceProtocol, encounteredThisError inError: RVS_BTDriver.Errors)
Parameters
inDevice
The
RVS_BTDriver_DeviceProtocol
instance that has the service.encounteredThisError
The error that was encountered.
-
This is called when an OBD device updates its transaction.
Declaration
Swift
public func deviceUpdatedTransaction(_ updatedTransaction: RVS_BTDriver_OBD_Device_TransactionStruct)
Parameters
updatedTransaction
The transaction that was updated. It may be nil.
-
Error reporting method.
Declaration
Swift
public func device(_ inDevice: RVS_BTDriver_OBD_DeviceProtocol, encounteredThisError inError: RVS_BTDriver.Errors)
Parameters
inDevice
The
RVS_BTDriver_OBD_DeviceProtocol
instance that encountered the error.encounteredThisError
The error that was encountered.
-
These are the shared persistent prefs for the test harness app.
Declaration
Swift
@objc dynamic internal let prefs: RVS_BTDriver_Test_Harness_Prefs
-
This is an accessor to our app delegate object. READ-ONLY
Declaration
Swift
@objc dynamic var appDelegateObject: RVS_BTDriver_OBD_Mac_Test_Harness_AppDelegate { get }
-
This is our instance of the actual BLE driver. We fetch it from the app delegate. READ-ONLY
Declaration
Swift
@objc dynamic var driverInstance: RVS_BTDriver! { get }
-
This is KVO (READ-ONLY)
Declaration
Swift
@objc dynamic public var isBTAvailable: Bool { get }
Return Value
true, if all of the vendor interfaces have Bluetooth powered on.