ITCB_Observer_Central_Protocol

public protocol ITCB_Observer_Central_Protocol : ITCB_Observer_Protocol

This is an observer specialization for Central instances.

All members are required.

  • This is called when a Peripheral returns an answer to the Central.

    This may not be called in the main thread.

    Declaration

    Swift

    func questionAnsweredByDevice(_ device: ITCB_Device_Peripheral_Protocol)

    Parameters

    device

    The Peripheral device that provided the answer (this will have both the question and answer in its properties).

  • This is called when a Central successfully asks a question of a peripheral.

    This may not be called in the main thread.

    Declaration

    Swift

    func questionAskedOfDevice(_ device: ITCB_Device_Peripheral_Protocol)

    Parameters

    device

    The Peripheral device that was asked the question (The question will be in the device properties).

  • This is called when a Central discovers and registers a peripheral.

    This may not be called in the main thread.

    Declaration

    Swift

    func deviceDiscovered(_ device: ITCB_Device_Peripheral_Protocol)

    Parameters

    device

    The Peripheral device that was discovered.