CGA_WatchOS_DescriptorInterfaceController

class CGA_WatchOS_DescriptorInterfaceController : CGA_WatchOS_BaseInterfaceController

This View Controller is for the individual Characteristic screen.

  • This is the Descriptor instance.

    Declaration

    Swift

    weak var descriptorInstance: CGA_Bluetooth_Descriptor?
  • Displays the Descriptor value as text (if possible).

    Declaration

    Swift

    @IBOutlet
    weak var valueLabel: WKInterfaceLabel!

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.

CGA_WatchOS_Base_Protocol Conformance

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

    Declaration

    Swift

    override func updateUI()