HID APPROVE SDK  5.4
HID APPROVE SDK for iOS
 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:
 Deprecated. Create device instance More...
 
(id< HIDDevice >) - newInstance:withSessionPassword:error:
 Create device instance. More...
 

Class Methods

(id) + factory
 Instantiate the device factory.
 
(BOOL) + reset:
 Static method. Fully reset the state by deleting all devices, containers, and credentials. More...
 

Detailed Description

Factory for creating a new device instance.

Method Documentation

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

Deprecated. Create device instance

Parameters
configconnection configuration.
errorerror details. It may be nil.

Possible error codes are:

Returns
The HIDDevice instance.
Deprecated:
Deprecated in SDK 5.1. Integrations should replace calls with the newInstance:withSessionPassword:error: method.
- (id<HIDDevice>) newInstance: (HIDConnectionConfiguration *)  config
withSessionPassword: (NSString *)  sessionPassword
error: (NSError **)  error 

Create device instance.

Parameters
configconnection 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.
+ (BOOL) reset: (NSError **)  error

Static method. Fully reset the state by deleting all devices, containers, and credentials.

Parameters
errorerror details. It may be nil.

Possible error codes are:

Returns
YES if reset successful.

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