MedM DeviceKit
MedMScanner Class Reference

MedM Scanner is where you search Bluetooth environment for new devices. More...

#import <MedMScanner.h>

Inheritance diagram for MedMScanner:

Instance Methods

(instancetype) - setCallback:
 
(instancetype) - setErrorCallback:
 
(id< ScannerStopToken >) - start
 Start scan for bluetooth devices. More...
 
(id< ScannerStopToken >) - start:
 Start scan for bluetooth devices. More...
 

Detailed Description

MedM Scanner is where you search Bluetooth environment for new devices.

Method Documentation

◆ setCallback:()

- (instancetype) setCallback: (id<ScannerCallback>)  scannerCallback
Parameters
scannerCallbackcallback to receive discovered devices or notification that discovery was finished

◆ setErrorCallback:()

- (instancetype) setErrorCallback: (id<ErrorCallback>)  errorCallback
Parameters
errorCallbackcallback to receive errors. Currently only used to notify if bluetooth is off.

◆ start()

- (id< ScannerStopToken >) start

Start scan for bluetooth devices.

Note that scanner will not filter already found devices.

Returns
token to stop scanning for devices

◆ start:()

- (id< ScannerStopToken >) start: (id<ScannerCallback>)  __deprecated

Start scan for bluetooth devices.

Note that scanner will not filter already found devices.

Deprecated:
use setCallback:, start instead
Parameters
scannerCallbackcallback to receive discovered devices or notification that discovery was finished
Returns
token to stop scanning for devices

The documentation for this class was generated from the following files: