CGA_WatchOS_DeviceInterfaceController
@MainActor
class CGA_WatchOS_DeviceInterfaceController : CGA_WatchOS_BaseInterfaceController
This View Controller is for the individual device screen.
-
This is the device discovery struct that describes this device.
Declaration
Swift
@MainActor weak var deviceDiscoveryData: RVS_BlueThoth.DiscoveryData! -
This label is shown while the device is undergoing a connection, and is hidden upon connection.
Declaration
Swift
@IBOutlet @MainActor weak var connectingLabel: WKInterfaceLabel! -
This displays the Services the device has available.
Declaration
Swift
@IBOutlet @MainActor weak var servicesTable: WKInterfaceTable!
-
This adds Services to the table for display.
Declaration
Swift
@MainActor func populateTable() -
Establishes accessibility labels.
Declaration
Swift
@MainActor func setAccessibility()
-
This is called as the view is established.
Declaration
Swift
@MainActor override func awake(withContext inContext: Any?)Parameters
withContextThe context, passed in from the main view. It will be the device discovery struct.
-
Called as the screen is activated
Declaration
Swift
@MainActor override func willActivate() -
Table touch handler.
Declaration
Swift
@MainActor override func contextForSegue(withIdentifier inSegueIdentifier: String, in inTable: WKInterfaceTable, rowIndex inRowIndex: Int) -> Any?Parameters
withIdentifierThe segue ID for this (we ignore)
inThe table instance
rowIndexThe vertical position (0-based) of the row that was touched.
Return Value
The context, if any. Can be nil.
-
This sets everything up to reflect the current state of the Peripheral.
Declaration
Swift
@MainActor override func updateUI()
View on GitHub