MSFKDeviceScanner Class Reference
| Inherits from | NSObject |
| Declared in | MSFKDeviceScanner.h MSFKDeviceScanner.m |
Overview
A class that (asynchronously) scans for available devices and sends corresponding notifications to its listener(s). This class is implicitly a singleton; since it does a network scan, it isn’t useful to have more than one instance of it in use.
@ingroup Discovery
Tasks
-
devicesproperty -
hasDiscoveredDevicesproperty -
scanningproperty -
– init -
– startScan -
– stopScan -
– addListener: -
– removeListener:
Properties
devices
The array of discovered devices.
@property (nonatomic, copy) NSArray *devicesDiscussion
The array of discovered devices.
Declared In
MSFKDeviceScanner.hInstance Methods
addListener:
Adds a listener for receiving notifications.
- (void)addListener:(id<MSFKDeviceScannerListener>)listenerParameters
- listener
The listener to add.
Discussion
Adds a listener for receiving notifications.
Declared In
MSFKDeviceScanner.hinit
Designated initializer. Constructs a new MSFKDeviceScanner.
- (id)initDiscussion
Designated initializer. Constructs a new MSFKDeviceScanner.
Declared In
MSFKDeviceScanner.hremoveListener:
Removes a listener that was previously added with @link #addListener: @endlink.
- (void)removeListener:(id<MSFKDeviceScannerListener>)listenerParameters
- listener
The listener to remove.
Discussion
Removes a listener that was previously added with @link #addListener: @endlink.
Declared In
MSFKDeviceScanner.hstartScan
Starts a new device scan. The scan must eventually be stopped by calling @link #stopScan @endlink.
- (void)startScanDiscussion
Starts a new device scan. The scan must eventually be stopped by calling @link #stopScan @endlink.
Declared In
MSFKDeviceScanner.hstopScan
Stops any in-progress device scan. This method must be called at some point after @link #startScan @endlink was called and before this object is released by its owner.
- (void)stopScanDiscussion
Stops any in-progress device scan. This method must be called at some point after @link #startScan @endlink was called and before this object is released by its owner.
Declared In
MSFKDeviceScanner.h