Enumerations
The following enumerations are available globally.
-
Represents the type of a bluetooth device.
See moreDeclaration
Swift
public enum BluetoothPeripheralType
-
Represents the key algorithm.
See moreDeclaration
Swift
public enum KeyAlgorithm
-
Represents a reader status that can be returned.
See moreDeclaration
Swift
@frozen public enum ReaderStatus
-
Declaration
Swift
public enum ReaderType
-
Represents an error that can be thrown or returned from function of the API.
Generally, whenever a
completionHandler
returns aNSError
, aSCMError
may be present throughNSError.scmError
to describe the error.Example:
pin.login(value: "****") { error in if let error = error { if (error.scmError == SCMError.CKR_PIN_INCORRECT) { // pin value is incorrect } else if (error.scmError == SCMError.CKR_PIN_LOCKED) { // pin is locked } else { // check other errors... } } else { // login is sucessful } }
See also
NSError.scmError
Declaration
Swift
public enum SCMError : Error