Implement GattClient#Disconnect for Apple implementation of BLEv2

PiperOrigin-RevId: 679218551
This commit is contained in:
Nick Bourdakos
2024-09-26 11:09:30 -07:00
committed by Copybara-Service
parent dc35037fee
commit 1a87241ffd
10 changed files with 191 additions and 55 deletions
@@ -31,9 +31,12 @@ NS_ASSUME_NONNULL_BEGIN
* @param peripheral The peripheral instance.
* @param queue The queue to run on, this must match the queue that the peripheral's delegate is
* running on. Defaults to the main queue when @c nil.
* @param requestDisconnectionHandler Called on a private queue with @c peripheral when the
* connection to the peripheral should be cancelled.
*/
- (instancetype)initWithPeripheral:(id<GNCPeripheral>)peripheral
queue:(nullable dispatch_queue_t)queue;
queue:(nullable dispatch_queue_t)queue
requestDisconnectionHandler:(GNCRequestDisconnectionHandler)requestDisconnectionHandler;
@end