CGA_ConnectedViewController

class CGA_ConnectedViewController : CGA_BaseViewController
extension CGA_ConnectedViewController: CGA_UpdatableScreenViewController
extension CGA_ConnectedViewController: UITableViewDataSource
extension CGA_ConnectedViewController: UITableViewDelegate
  • The reuse ID for each row of the table.

    Declaration

    Swift

    static let servceTableCellReuseID: String
  • The segue ID of the “Show Discovery Details” screen.

    Declaration

    Swift

    static let characteristicsSegueID: String
  • The discovery data for this device.

    Declaration

    Swift

    var discoveryData: RVS_BlueThoth.DiscoveryData!
  • The temporary label that is put up while connecting.

    Declaration

    Swift

    @IBOutlet
    weak var connectingLabel: UILabel!
  • The centering view for the busy indicator.

    Declaration

    Swift

    @IBOutlet
    weak var spinnerContainerView: UIView!
  • This label displays the device name.

    Declaration

    Swift

    @IBOutlet
    weak var nameLabel: UILabel!
  • The table that displays the services.

    Declaration

    Swift

    @IBOutlet
    weak var serviceTableView: UITableView!

Instance Methods

  • This sets up the accessibility and voiceover strings for the screen.

    Declaration

    Swift

    func setUpAccessibility()

Base Class Overrides

  • Called just after the view hierarchy has loaded.

    Declaration

    Swift

    override func viewDidLoad()
  • Called just before the characteristics display screen is pushed.

    Declaration

    Swift

    override func prepare(for inSegue: UIStoryboardSegue, sender inSender: Any?)

    Parameters

    for

    The segue that is being executed.

    sender

    The discovery information.

CGA_UpdatableScreenViewController Conformance

  • 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

    func updateUI()

UITableViewDataSource Conformance

  • Called to provide the data to display in the indicated table cell.

    Declaration

    Swift

    func tableView(_ inTableView: UITableView, cellForRowAt inIndexPath: IndexPath) -> UITableViewCell

    Parameters

    inTableView

    The Table View that is asking for this View.

    cellForRowAt

    The IndexPath of the cell.

    Return Value

    A new view, set up for the indicated cell.

  • Declaration

    Swift

    func tableView(_: UITableView, numberOfRowsInSection: Int) -> Int

    Return Value

    The number of rows in the table.

UITableViewDelegate Conformance

  • Called when a row is selected.

    Declaration

    Swift

    func tableView(_: UITableView, didSelectRowAt inIndexPath: IndexPath)

    Parameters

    didSelectRowAt

    The IndexPath of the selected row.