CGA_WatchOS_DiscoveryInterfaceController

class CGA_WatchOS_DiscoveryInterfaceController : CGA_WatchOS_BaseInterfaceController

This View Controller is for the individual device screen.

  • The segue ID for the connection segue (from the CONNECT button).

    Declaration

    Swift

    static let connectionSegueID: String
  • This is the device discovery struct that describes this device.

    Declaration

    Swift

    weak var deviceDiscoveryData: RVS_BlueThoth.DiscoveryData!
  • This label displays the advertising strings.

    Declaration

    Swift

    @IBOutlet
    weak var advertisingInformationLabel: WKInterfaceLabel!
  • If the device is connectable, this button is displayed, and will bring in the connected device screen.

    Declaration

    Swift

    @IBOutlet
    weak var connectButton: WKInterfaceButton!

Instance Methods

  • Establishes accessibility labels.

    Declaration

    Swift

    func setAccessibility()

Overridden Base Class Methods

  • This is called as the view is established.

    Declaration

    Swift

    override func awake(withContext inContext: Any?)

    Parameters

    withContext

    The context, passed in from the main view. It will be the device discovery struct.

  • This is called as the view is about to become active.

    Declaration

    Swift

    override func willActivate()
  • This is called as we switch to the connection screen.

    Declaration

    Swift

    override func contextForSegue(withIdentifier inSegueIdentifier: String) -> Any?

    Parameters

    withIdentifier

    The String that identifies the segue.

    Return Value

    nil, if the segue is not ours, or the device discovery data.

CGA_WatchOS_Base_Protocol Conformance

  • This sets everything up to reflect the current state of the Peripheral Discovery.

    Declaration

    Swift

    override func updateUI()