iOS Guides | Samples

CoreNFC.NFCReaderSession Class

Abstract class implementing INFCReaderSessionContract and base class for NFCNDEFReaderSession. A session for detecting and reading NFC tags.

See Also: NFCReaderSession

Syntax

[Foundation.Register("NFCReaderSession", true)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public class NFCReaderSession : NSObject, INFCReaderSessionContract, IDisposable

Requirements

Namespace: CoreNFC
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of CoreNFC.NFCReaderSession are listed below.

See Also: NSObject

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

AlertMessageString. Gets or sets a user-meaningful message describing the application's use of NFC.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
DelegateINFCReaderSessionDelegate. An instance of the CoreNFC.INFCReaderSessionDelegate model class which acts as the class delegate.
[read-only]
ReadyBoolean. Gets whether the session is ready to detect and read NFC tags.
[read-only]
SessionQueueDispatchQueue. Gets the DispatchQueue on which the NFC detection and reading is performed.

Public Methods

BeginSession()
Starts a session for detecting and reading NFC tags.
InvalidateSession()
Closes an NFC session. Once invalidated, a session cannot be reused.

Protected Methods

override
Dispose(Boolean)
Releases the resources used by the NFCReaderSession object.