RVS_BTDriver_WatchOS_Test_Harness_Device_InterfaceController
class RVS_BTDriver_WatchOS_Test_Harness_Device_InterfaceController : WKInterfaceController
This displays the information for one device.
-
The ID of the delete segue
Declaration
Swift
let deleteSegueID: String
-
These are the shared persistent prefs for the test harness app.
Declaration
Swift
var prefs: RVS_BTDriver_Test_Harness_Prefs
-
This is a reference to the device from the driver.
Declaration
Swift
var deviceInstance: RVS_BTDriver_DeviceProtocol!
-
This is an Array of key/value tuples, representing the data to be displayed.
Declaration
Swift
var deviceData: [RVS_BTDriver_WatchOS_Test_Harness_Device_InterfaceController_DisplayStringTuple]
-
This refers to our presenting controller. We use this to kick the delete command back up the chain.
Declaration
Swift
var owner: RVS_BTDriver_WatchOS_Test_Harness_Main_InterfaceController!
-
A semaphore, indicating that this device was deleted, so we will dismiss as soon as we come into play.
Declaration
Swift
var iOffedMyself: Bool
-
The table, displaying the values.
Declaration
Swift
@IBOutlet weak var displayTable: WKInterfaceTable!
-
The Delete Button, shown at the bottom of the screen.
Declaration
Swift
@IBOutlet weak var deletButton: WKInterfaceButton!
-
Called by the delete screen, to delete this device.
Declaration
Swift
func deleteMyself()
-
Called to set up the table of values.
Declaration
Swift
func populateTable()
-
Called when the sheet is loaded.
Declaration
Swift
override func awake(withContext inContext: Any?)
Parameters
withContext
The context that may have been set by the presenting view controller.
-
Called just before the screen is shown.
Declaration
Swift
override func willActivate()
-
Called just after the screen disappears.
Declaration
Swift
override func didDeactivate()
-
This is called just as a segue to the delete screen is called.
Declaration
Swift
override func contextForSegue(withIdentifier inSegueIdentifier: String) -> Any?
Parameters
withIdentifier
The segue ID. It should always be for the delete screen.