CGA_ServiceViewController
@MainActor
class CGA_ServiceViewController : CGA_BaseViewController
extension CGA_ServiceViewController: CGA_UpdatableScreenViewController
extension CGA_ServiceViewController: UITableViewDataSource
extension CGA_ServiceViewController: UITableViewDelegate
-
The reuse ID for each row of the table.
Declaration
Swift
@MainActor static let characteristicTableCellReuseID: String -
The ID of the segue to show Characteristic detail.
Declaration
Swift
@MainActor static let characteristicDetailSegueID: String -
The Service wrapper instance for this Service.
Declaration
Swift
@MainActor var serviceInstance: CGA_Bluetooth_Service! -
This label displays the device name.
Declaration
Swift
@IBOutlet @MainActor weak var nameLabel: UILabel! -
The table that displays the Characteristics.
Declaration
Swift
@IBOutlet @MainActor weak var characteristicsTableView: UITableView!
-
This sets up the accessibility and voiceover strings for the screen.
Declaration
Swift
@MainActor func setUpAccessibility()
-
Called just after the view hierarchy has loaded.
Declaration
Swift
@MainActor override func viewDidLoad() -
Called just before the characteristics display screen is pushed.
Declaration
Swift
@MainActor override func prepare(for inSegue: UIStoryboardSegue, sender inSender: Any?)Parameters
forThe segue that is being executed.
senderThe discovery information.
-
This simply makes sure that the table is displayed if BT is available, or the “No BT” image is shown, if it is not.
Declaration
Swift
@MainActor func updateUI()
-
Called to provide the data to display in the indicated table cell.
Declaration
Swift
@MainActor func tableView(_ inTableView: UITableView, cellForRowAt inIndexPath: IndexPath) -> UITableViewCellParameters
inTableViewThe Table View that is asking for this View.
cellForRowAtThe IndexPath of the cell.
Return Value
A new view, set up for the indicated cell.
-
Declaration
Swift
@MainActor func tableView(_: UITableView, numberOfRowsInSection: Int) -> IntReturn Value
The number of rows in the table.
-
Called when a row is selected.
Declaration
Swift
@MainActor func tableView(_: UITableView, didSelectRowAt inIndexPath: IndexPath)Parameters
didSelectRowAtThe IndexPath of the selected row.
View on GitHub