Protocols

The following protocols are available globally.

Factory Protocol for Service Instances

  • This allows a generic factory method for Service Wrappers.

    See more

    Declaration

    Swift

    internal protocol CGA_ServiceFactory

Factory Protocol for Characteristic Instances

Factory Protocol for Descriptor Instances

  • This allows a generic factory method for Descriptor Wrappers.

    See more

    Declaration

    Swift

    internal protocol CGA_DescriptorFactory

The Internal Face of Characteristics

The Main Wrapper Class for the Descriptors

The Public Face of Services

The Public Face of Characteristics

  • This protocol publishes a public interface for our Characteristic wrapper classes.

    See more

    Declaration

    Swift

    public protocol CGA_Bluetooth_Characteristic_Protocol : AnyObject, RVS_SequenceProtocol

The Public Face of Descriptors

The Main Protocol for Each Type

  • This protocol is the “base” protocol to which all the exposed types conform.

    See more

    Declaration

    Swift

    public protocol CGA_Class_Protocol : AnyObject

CGA_Class_Protocol_UpdateService Protocol

CGA_Class_Protocol_UpdateCharacteristic Protocol

  • This protocol defines an interface for a message that indicates that a Characteristic object needs to be refreshed. It also specifies a method to “clear” the stored Descriptors

    See more

    Declaration

    Swift

    public protocol CGA_Class_Protocol_UpdateCharacteristic : CGA_Class_Protocol

The CGA_Class_Protocol_UpdateDescriptor Protocol

The Central Manager Delegate Protocol

  • All delegate callbacks are made in the main thread. This is the only delegate for the BlueThoth framework. All events in the system come to this one place.

    See more

    Declaration

    Swift

    public protocol CGA_BlueThoth_Delegate : AnyObject

Writaeable Entity Protocol

The Public Face of Services

  • This protocol publishes a public interface for our Service wrapper classes.

    See more

    Declaration

    Swift

    public protocol CGA_Bluetooth_Service_Protocol : AnyObject, RVS_SequenceProtocol