HID APPROVE SDK  5.11
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 >) - newInstance:error:
 Create device instance. More...
 
(id< HIDDevice >) - newInstance:withSessionPassword: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>) newInstance: (HIDConnectionConfiguration *)  config
error: (NSError **)  error 

Create device instance.

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

Possible error codes are:

Returns
The HIDDevice instance.
- (id<HIDDevice>) newInstance: (HIDConnectionConfiguration *)  config
withSessionPassword: (NSString *)  sessionPassword
error: (NSError **)  error 

Deprecated. Create device instance

Parameters
configoptional connection configuration.
sessionPasswordtransaction protection key password (can be nil if not required by the policy)
errorerror details. It may be nil.

Possible error codes are:

Returns
The HIDDevice instance.
Deprecated:
Deprecated in SDK 5.5. Integrations should replace calls with the newInstance: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.