BKClientDiscoveryDelegate

public protocol BKClientDiscoveryDelegate

Delegate for the BLE discovery.

Discovery delegates are registred by BKClient.discoveryDelegate

  • Will be called when the BKDeviceDiscoveryService is initialized

    Declaration

    Swift

    func onDiscoveryInitialized()
  • Will be called frequently after one scan duration for returning the scan results.

    If no BLE modules has been found discoveryResultList list is an empty list (not nil).

    If the discovery failed because of an error onDiscoveryResult(_:) will not be called.

    Declaration

    Swift

    func onDiscoveryResult(_ discoveryResultList: [BKDiscoveryData])

    Parameters

    discoveryResultList

    list of discovered BKDiscoveryData

  • Will be called if discovery or resolver fail because of an error

    Declaration

    Swift

    func onDiscoveryError(_ errorCode: BKDiscoveryError)

    Parameters

    errorCode

    error code

  • Will be called for discovery state information

    Declaration

    Swift

    func onDiscoveryInfo(_ infoCode: BKDiscoveryInfo)

    Parameters

    infoCode

    info code