iOS Guides | Samples

CoreNFC.INFCReaderSessionContract

Interface defining the methods for an NFC detection- and reading- session.

See Also: INFCReaderSessionContract

Syntax

[Foundation.Protocol(Name="NFCReaderSession", WrapperType=typeof(CoreNFC.NFCReaderSessionContractWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="BeginSession", Selector="beginSession")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="InvalidateSession", Selector="invalidateSession")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="isReady", IsProperty=true, IsRequired=true, IsStatic=false, Name="Ready", PropertyType=typeof(System.Boolean), Selector="ready")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="alertMessage", IsProperty=true, IsRequired=true, IsStatic=false, Name="AlertMessage", PropertyType=typeof(System.String), Selector="alertMessage", SetterSelector="setAlertMessage:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public interface INFCReaderSessionContract : INativeObject, IDisposable

Requirements

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

The members of CoreNFC.INFCReaderSessionContract are listed below.

Public Properties

AlertMessageString. Gets or sets a user-meaningful message describing the application's use of NFC.
[read-only]
ReadyBoolean. Gets whether the session is ready to detect and read NFC tags.

Public Methods

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