File tree 1 file changed +8
-3
lines changed
Sources/iOS-BLE-Library-Mock/CentralManager
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -225,9 +225,13 @@ extension CentralManager {
225
225
///
226
226
/// Calling this method stops an ongoing scan if it is already running and finishes the publisher returned by ``scanForPeripherals(withServices:)``.
227
227
///
228
- /// - Parameter services: The services to scan for.
228
+ /// - Parameters:
229
+ /// - services: The services to scan for.
230
+ /// - options: A dictionary to customize the scan, such as specifying whether duplicate results should be reported.
229
231
/// - Returns: A publisher that emits scan results or an error.
230
- public func scanForPeripherals( withServices services: [ CBUUID ] ? )
232
+ public func scanForPeripherals(
233
+ withServices services: [ CBUUID ] ? , options: [ String : Any ] ? = nil
234
+ )
231
235
-> AnyPublisher < ScanResult , Error >
232
236
{
233
237
stopScan ( )
@@ -252,7 +256,8 @@ extension CentralManager {
252
256
return e
253
257
}
254
258
. bluetooth {
255
- self . centralManager. scanForPeripherals ( withServices: services)
259
+ self . centralManager. scanForPeripherals (
260
+ withServices: services, options: options)
256
261
}
257
262
. autoconnect ( )
258
263
. eraseToAnyPublisher ( )
You can’t perform that action at this time.
0 commit comments