CGA_DescriptorFactory
internal protocol CGA_DescriptorFactory
This allows a generic factory method for Descriptor 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_Characteristic, cbElementInstance: CBDescriptor) -> CGA_Bluetooth_Descriptor?
Parameters
parent
The Characteristic that “owns” this Descriptor
cbElementInstance
The CB element for this Descriptor.
Return Value
A new instance of CGA_Bluetooth_Descriptor, or a subclass, thereof. Nil, if it fails.