CGA_CharacteristicFactory

internal protocol CGA_CharacteristicFactory

This allows a generic factory method for Characteristic Wrappers.

  • Declaration

    Swift

    static var uuid: String { get }

    Return Value

    A String, with the UUID for this class’ element type.

  • REQUIRED: This creates an instance of the class, using the subclass-defined factory method.

    Declaration

    Swift

    static func createInstance(parent: CGA_Bluetooth_Service, cbElementInstance: CBCharacteristic) -> CGA_Bluetooth_Characteristic?

    Parameters

    parent

    The Service that “owns” this Characteristic

    cbElementInstance

    The CB element for this Characteristic.

    Return Value

    A new instance of CGA_Bluetooth_Characteristic, or a subclass, thereof. Nil, if it fails.