CGA_WatchOS_BaseInterfaceController

class CGA_WatchOS_BaseInterfaceController : WKInterfaceController, CGA_WatchOS_Base_Protocol

This is a base class for screen instance View Controllers.

  • id

    This is a stored property that each screen sets to its ID.

    Declaration

    Swift

    var id: String
  • Simple accessor to the main extension delegate instance.

    Declaration

    Swift

    var extensionDelegateInstance: CGA_WatchOS_ExtensionDelegate? { get }
  • Returns the Central manager BlueThoth instance.

    Declaration

    Swift

    var centralManager: RVS_BlueThoth? { get }
  • This accesses our stored preferences.

    Declaration

    Swift

    var prefs: CGA_PersistentPrefs? { get }
  • Displays an alert.

    Declaration

    Swift

    func displayAlert(header inTitle: String, message inMessage: String = "")

    Parameters

    inTitle

    REQUIRED: a string to be displayed as the title of the alert. It is localized by this method.

    message

    OPTIONAL: a string to be displayed as the message of the alert. It is localized by this method.

CGA_WatchOS_Base_Protocol Conformance

  • Default does nothing. It has to be objc dynamic, to allow override.

    Declaration

    Swift

    @objc
    dynamic func updateUI()

Base Class Override Methods

  • Called just before the view activates.

    Declaration

    Swift

    override func willActivate()
  • Called just after the view deactivates.

    Declaration

    Swift

    override func didDeactivate()