Protocol

NFCFeliCaTag

An interface for interacting with a FeliCa™ tag.

Declaration

protocol NFCFeliCaTag

Overview

FeliCa is a trademark of Sony Corporation.

Topics

Specifying System Codes

property list key com.apple.developer.nfc.readersession.felica.systemcodes

A list of FeliCa system codes that the app supports.

Name: ISO18092 system codes for NFC Tag Reader Session

Getting Current Information

var currentSystemCode: Data

The system code most recently selected by the reader session during a polling sequence.

Required.

var currentIDm: Data

The manufacturer identifier for the system currently selected by the reader session.

Required.

Polling

enum PollingRequestCode

Codes that specify the type of the data to request when polling.

enum PollingTimeSlot

Constants that specify the maximum number of time slots.

Requesting Services

func requestService(nodeCodeList: [Data], completionHandler: ([Data], Error?) -> Void)

Sends the Request Service command, as defined by the FeliCa card specification, to the tag.

Required.

func requestServiceV2(nodeCodeList: [Data], completionHandler: (Int, Int, EncryptionId, [Data], [Data], Error?) -> Void)

Sends the Request Service V2 command, as defined by the FeliCa card specification, to the tag.

Required.

enum EncryptionId

Encryption identifiers indicating the type of encryption algorithm used in the response of a Request Service V2 command.

Requesting Responses

func requestResponse(completionHandler: (Int, Error?) -> Void)

Sends the Request Response command, as defined by the FeliCa card specification, to the tag.

Required.

Requesting Specification Versions

func requestSpecificationVersion(completionHandler: (Int, Int, Data, Data, Error?) -> Void)

Sends the Request Specification Version command, as defined by the FeliCa card specification, to the tag.

Required.

Requesting System Codes

func requestSystemCode(completionHandler: ([Data], Error?) -> Void)

Sends the Request System Code command, as defined by the FeliCa card specification, to the tag.

Required.

Resetting Modes

func resetMode(completionHandler: (Int, Int, Error?) -> Void)

Sends the Reset Mode command, as defined by the FeliCa card specification, to the tag.

Required.

Reading and Writing Without Encryption

func readWithoutEncryption(serviceCodeList: [Data], blockList: [Data], completionHandler: (Int, Int, [Data], Error?) -> Void)

Sends the Read Without Encryption command, as defined by the FeliCa card specification, to the tag.

Required.

func writeWithoutEncryption(serviceCodeList: [Data], blockList: [Data], blockData: [Data], completionHandler: (Int, Int, Error?) -> Void)

Sends the Write Without Encryption command, as defined by the FeliCa card specification, to the tag.

Required.

Sending FeliCa Commands

Relationships

Inherits From

See Also

Tag Types

Creating NFC Tags from Your iPhone

Save data to tags, and interact with them using native tag protocols.

protocol NFCISO7816Tag

An interface for interacting with an ISO 7816 tag.

Beta
protocol NFCISO15693Tag

An interface for interacting with an ISO 15693 tag.

protocol NFCMiFareTag

An interface for interacting with a MIFARE® tag.

Beta
protocol NFCNDEFTag

An interface for interacting with an NDEF tag.

Beta
enum NFCTag

An object that represents an NFC tag object.

Beta
class NFCTagCommandConfiguration

A set of parameters you use to define the configuration of an NFC tag command.

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