HID APPROVE SDK  5.13
HID Approve SDK for iOS/macOS
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
HIDDeviceFactory Class Reference

Factory for creating a new device instance. More...

#import <HIDDevice.h>

Inheritance diagram for HIDDeviceFactory:

Instance Methods

(id< HIDDevice >) - getDevice:error:
 Return device instance. More...
 
(id< HIDDevice >) - newInstance:error:
 Deprecated. Create device instance More...
 

Class Methods

(id) + factory
 Instantiate the device factory.
 
(BOOL) + reset:
 Deletes all containers and keys contained in the device. More...
 

Detailed Description

Factory for creating a new device instance.

Method Documentation

- (id<HIDDevice>) getDevice: (HIDConnectionConfiguration *)  config
error: (NSError **)  error 

Return device instance.

Parameters
configoptional connection configuration.
errorerror details. It may be nil.

Possible error codes are:

Returns
An HIDDevice instance.
- (id<HIDDevice>) newInstance: (HIDConnectionConfiguration *)  config
error: (NSError **)  error 

Deprecated. Create device instance

Parameters
configoptional connection configuration.
errorerror details. It may be nil.

Possible error codes are:

Returns
The HIDDevice instance.
Deprecated:
Deprecated in SDK 5.13. Integrations should replace calls with the getDevice:error: method.
+ (BOOL) reset: (NSError **)  error

Deletes all containers and keys contained in the device.

Parameters
errorerror details. It may be nil.

Possible error codes are:

Returns
YES if reset successful.