swift iOS Bluetooth: Does a delegate method always get called?

192 views Asked by At

Am new to Swift and iOS Bluetooth - coming from Android. There are several methods on the CBCentralManager and CBPeripheral objects where the documentation states that a delegate method is called.

The question I have is simple - will the delegate method ALWAYs be called or are there situations where some error condition happens such that the delegate method is not called? In other words, after invoking the call, do I need to invoke some kind of wait on a semaphore and perhaps have a timeout?

For example, the CBPeripheral.discoverServices has a delegate method CBPeripheral: didDiscoverServices. Will that delegate ALWAYs get signaled?

0

There are 0 answers