Cognex Mobile Barcode SDK SDK for supporting communication with Cognex Barcode Reader devices

CDMEADiscoverer.h
Go to the documentation of this file.
1//
2// CDMEADiscoverer.h
3// DataManSDK
4//
5// Created by Ferenc Knebl on 24/11/14.
6// Copyright (c) 2014 Cognex Corporation. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import <ExternalAccessory/ExternalAccessory.h>
11
16 static NSString* const CDMCompatibleAccessoryConnected = @"cdmAccessoryConnected";
17
22 static NSString* const CDMCompatibleAccessoryDisconnected = @"cdmAccessoryDisconnected";
23
28 static NSString* const kCDMAccessory = @"accessory";
29
34 static NSString* const kCDMProtocol = @"protocol";
35
39@interface CDMEADiscoverer : NSObject
40
45+ (id)sharedDiscoverer;
46
51- (NSArray*)compatibleAccessories;
52
57- (void)startDiscovery;
58
62- (void)stopDiscovery;
63
64@end
CDMEADiscoverer
Helper class for discovering Cognex DMCC protocol compatible accessories.
Definition: CDMEADiscoverer.h:40
-[CDMEADiscoverer stopDiscovery]
void stopDiscovery()
Stops device discover.
CDMEADiscoverer::kCDMAccessory
static NSString *const kCDMAccessory
Accessory parameter key in NSNotification userInfo dictionary.
Definition: CDMEADiscoverer.h:28
+[CDMEADiscoverer sharedDiscoverer]
id sharedDiscoverer()
Returns the shared discoverer object.
CDMEADiscoverer::CDMCompatibleAccessoryDisconnected
static NSString *const CDMCompatibleAccessoryDisconnected
Notification name for compatible accessory disconnected.
Definition: CDMEADiscoverer.h:22
CDMEADiscoverer::CDMCompatibleAccessoryConnected
static NSString *const CDMCompatibleAccessoryConnected
Notification name for compatible accessory connected.
Definition: CDMEADiscoverer.h:16
CDMEADiscoverer::kCDMProtocol
static NSString *const kCDMProtocol
Protocol parameter key in NSNotification userInfo dictionary.
Definition: CDMEADiscoverer.h:34
-[CDMEADiscoverer startDiscovery]
void startDiscovery()
Starts device discovery.
-[CDMEADiscoverer compatibleAccessories]
NSArray * compatibleAccessories()
Returns the currently connected compatible accessories.