Classes

The following classes are available globally.

The Persistent Prefs Subclass

  • This is the subclass of the preferences type that will provide our persistent app settings.

    See more

    Declaration

    Swift

    class CGA_PersistentPrefs : RVS_PersistentPrefs

The Base view controller Class

  • This class exists only to manage the background, navbar and logo image. If we are in Dark Mode, or High-Contrast Mode, we make the background darker (and possibly monochromatic), and reduce the prominence of the logo.

    See more

    Declaration

    Swift

    class CGA_BaseViewController : UIViewController

The Main Application Delegate

  • The primary application delegate for the app.

    See more

    Declaration

    Swift

    @UIApplicationMain
    class CGA_AppDelegate : UIResponder, UIApplicationDelegate

The About view controller

The Settings View Controller

The Characteristic Interaction View Controller

The CGA_DetailViewController_TableRow Class (Denotes One Row of the Table)

The Characteristic View Controller (table of Descriptors)

The Interaction View Controller

The CGA_InitialViewController_TableRow Class (Denotes One Row of the Table)

  • This is a simple class that will be used to display one row in the initial discovery table.

    See more

    Declaration

    Swift

    class CGA_InitialViewController_TableRow : UITableViewCell

The initial view controller (table of devices)

  • This controls the initial view, which is a basic table of discovered devices.

    There are two sections: BLE, and BR/EDR (Classic). Each section has rows of devices that fit in that Bluetooth mode.

    See more

    Declaration

    Swift

    class CGA_InitialViewController : CGA_BaseViewController
    extension CGA_InitialViewController: CGA_ScannerViewController
    extension CGA_InitialViewController: CGA_UpdatableScreenViewController
    extension CGA_InitialViewController: CGA_BlueThoth_Delegate
    extension CGA_InitialViewController: UITableViewDataSource
    extension CGA_InitialViewController: UITableViewDelegate

The CGA_PeripheralViewController_TableRow Class (Denotes One Row of the Table)

The initial view controller (table of services)

The CGA_DetailViewController_TableRow Class (Denotes One Row of the Table)

A Special Tap Gesture Recognizer for Table Rows

  • This simply allows us to attach a row index to a gesture, so we know which Characteristic to use.

    See more

    Declaration

    Swift

    class CG_TapGestureRecognizer : UITapGestureRecognizer

A Special Button for Table Rows (NOTIFY)

  • This simply allows us to attach a row index to a button, so we know which Characteristic to use.

    See more

    Declaration

    Swift

    class CG_TappableButton : UIButton

The Service view controller (table of Characteristics)