MedM DeviceKit
MedMScanner.h
Go to the documentation of this file.
1 //
2 // MedMScanner.h
3 // MedMDeviceKit
4 //
5 // Copyright (C) 2017 MedM. All rights reserved.
6 //
7 
8 #ifndef MedMScanner_h
9 #define MedMScanner_h
10 
11 #import "ScannerCallback.h"
12 #import "ScannerStopToken.h"
13 #import "ErrorCallback.h"
14 
18 @interface MedMScanner : NSObject
19 
23 - (instancetype)setCallback:(id<ScannerCallback>)scannerCallback;
24 
28 - (instancetype)setErrorCallback:(id<ErrorCallback>)errorCallback;
29 
35 - (id<ScannerStopToken>)start;
36 
46 - (id<ScannerStopToken>)start:(id<ScannerCallback>)scannerCallback __deprecated;
47 @end
48 
49 #endif /* MedMScanner_h */
Callback for receiving info about scan.
Definition: ScannerCallback.h:16
id< ScannerStopToken > start()
Start scan for bluetooth devices.
Definition: MedMScanner.mm:101
Error callback to get notifications about errors.
Definition: ErrorCallback.h:18
Scanner stop token – could be used to stop scan.
Definition: ScannerStopToken.h:16
MedM Scanner is where you search Bluetooth environment for new devices.
Definition: MedMScanner.h:18