CGA_WatchOS_DeviceInterfaceController
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
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 weak var connectingLabel: WKInterfaceLabel! -
This displays the Services the device has available.
Declaration
Swift
@IBOutlet weak var servicesTable: WKInterfaceTable!
-
This adds Services to the table for display.
Declaration
Swift
func populateTable() -
Establishes accessibility labels.
Declaration
Swift
func setAccessibility()
-
This is called as the view is established.
Declaration
Swift
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
override func willActivate() -
Table touch handler.
Declaration
Swift
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
override func updateUI()
View on GitHub
CGA_WatchOS_DeviceInterfaceController Class Reference