Structure

NFCReaderError

An error type that indicates problems with reader sessions or tags.

Declaration

struct NFCReaderError

Topics

Error Information

var errorCode: Int

The error code.

var errorUserInfo: [String : Any]

Additional details about an error.

var localizedDescription: String

A user-facing, localized string that describes the error.

NDEF Tag Errors

static var ndefReaderSessionErrorTagSizeTooSmall: NFCReaderError.Code

The NDEF tag memory size is too small to store the data.

Beta
static var ndefReaderSessionErrorTagUpdateFailure: NFCReaderError.Code

The reader session failed to update the NDEF tag.

Beta
static var ndefReaderSessionErrorZeroLengthMessage: NFCReaderError.Code

The NDEF tag doesn’t contain an NDEF message.

Beta

Tag Command Configuration Errors

static var tagCommandConfigurationErrorInvalidParameters: NFCReaderError.Code

The tag has been configured with invalid parameters.

Other Errors

static var readerErrorUnsupportedFeature: NFCReaderError.Code

The reader session does not support this feature.

static var readerErrorInvalidParameterLength: NFCReaderError.Code

The length of an input parameter is invalid.

Beta
static var readerErrorParameterOutOfBound: NFCReaderError.Code

A parameter value is outside of the acceptable boundary.

Beta
static var readerErrorSecurityViolation: NFCReaderError.Code

A security violation associated with the reader session has occurred.

Error Domain

static var errorDomain: String

The error domain for this error.

let NFCErrorDomain: String

The domain for errors associated with Core NFC APIs.

Operator Functions

static func != (NFCReaderError, NFCReaderError) -> Bool

Returns a Boolean value indicating whether two values are not equal.

See Also

Errors

let NFCTagResponseUnexpectedLengthErrorKey: String

A user-information dictionary key that indicates an invalid received response packet length.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software