diff --git a/src/corenfc.cs b/src/corenfc.cs index 3b0c344ca8e2..1e3177b9cdf8 100644 --- a/src/corenfc.cs +++ b/src/corenfc.cs @@ -27,6 +27,8 @@ public enum NFCReaderError : long { InvalidParameterLength, ParameterOutOfBound, RadioDisabled = 6, + Ineligible = 7, + AccessNotAccepted = 8, /// The connection to the tag was lost. ReaderTransceiveErrorTagConnectionLost = 100, @@ -1230,4 +1232,13 @@ interface NFCVasReaderSession { [DesignatedInitializer] NativeHandle Constructor (NFCVasCommandConfiguration [] commandConfigurations, INFCVasReaderSessionDelegate @delegate, [NullAllowed] DispatchQueue queue); } + + [MacCatalyst (26, 0), NoTV, NoMac, iOS (26, 0)] + [BaseType (typeof (NFCTagReaderSession))] + [DisableDefaultCtor] + interface NFCPaymentTagReaderSession { + [Export ("initWithDelegate:queue:")] + NativeHandle Constructor (INFCTagReaderSessionDelegate @delegate, [NullAllowed] DispatchQueue queue); + } + } diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreNFC.todo b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreNFC.todo deleted file mode 100644 index 1f2ea94a5c94..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreNFC.todo +++ /dev/null @@ -1,4 +0,0 @@ -!missing-enum-value! NFCReaderError native value NFCReaderErrorIneligible = 7 not bound -!missing-selector! NFCPaymentTagReaderSession::initWithDelegate:queue: not bound -!missing-type! NFCPaymentTagReaderSession not bound -!missing-enum-value! NFCReaderError native value NFCReaderErrorAccessNotAccepted = 8 not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreNFC.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreNFC.todo deleted file mode 100644 index 1f2ea94a5c94..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreNFC.todo +++ /dev/null @@ -1,4 +0,0 @@ -!missing-enum-value! NFCReaderError native value NFCReaderErrorIneligible = 7 not bound -!missing-selector! NFCPaymentTagReaderSession::initWithDelegate:queue: not bound -!missing-type! NFCPaymentTagReaderSession not bound -!missing-enum-value! NFCReaderError native value NFCReaderErrorAccessNotAccepted = 8 not bound