From 6ed6b78bed74daf1873b35c2edd250c0887fa734 Mon Sep 17 00:00:00 2001 From: "jh8801.jung" Date: Mon, 3 Jul 2017 15:23:18 +0900 Subject: [PATCH] Add since_tizen Tag Signed-off-by: jh8801.jung Change-Id: Ied82ea3ee84a9650223e21c62debea49ce20298d --- .../Tizen.Network.Nfc/NfcCallbackData.cs | 8 ++- .../Tizen.Network.Nfc/NfcCardEmulationAdapter.cs | 17 +++++ .../Tizen.Network.Nfc/NfcEnumerations.cs | 79 ++++++++++++++++++++++ .../Tizen.Network.Nfc/NfcErrorFactory.cs | 1 + .../Tizen.Network.Nfc/NfcEventArgs.cs | 23 +++++++ .../Tizen.Network.Nfc/NfcManager.cs | 13 ++++ .../Tizen.Network.Nfc/NfcNdefMessage.cs | 7 ++ .../Tizen.Network.Nfc/NfcNdefRecord.cs | 14 ++++ src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2p.cs | 4 ++ .../Tizen.Network.Nfc/NfcP2pAdapter.cs | 3 + .../Tizen.Network.Nfc/NfcSecureElement.cs | 2 + src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs | 10 +++ .../Tizen.Network.Nfc/NfcTagAdapter.cs | 3 + 13 files changed, 183 insertions(+), 1 deletion(-) diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCallbackData.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCallbackData.cs index 030d18a..ba7c595 100755 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCallbackData.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCallbackData.cs @@ -22,6 +22,7 @@ namespace Tizen.Network.Nfc /// /// Structure containing the information of Tag data. /// + /// 3 public class NfcTagInformation { private string _key; @@ -36,6 +37,7 @@ namespace Tizen.Network.Nfc /// /// Key value. /// + /// 3 public string Key { get @@ -46,6 +48,7 @@ namespace Tizen.Network.Nfc /// /// Information value. /// + /// 3 public byte[] InformationValue { get @@ -58,6 +61,7 @@ namespace Tizen.Network.Nfc /// /// Structure containing the information of Secure element Aid(Application Identifier). /// + /// 3 public class NfcRegisteredAidInformation { private NfcSecureElementType _seType; @@ -74,6 +78,7 @@ namespace Tizen.Network.Nfc /// /// Secure Element Type value. /// + /// 3 public NfcSecureElementType SeType { get @@ -83,9 +88,9 @@ namespace Tizen.Network.Nfc } /// - /// /// The targeted Aid (Application Identifier) value. /// + /// 3 public string Aid { get @@ -97,6 +102,7 @@ namespace Tizen.Network.Nfc /// /// Read-only value. If this value is false, there are restrictions to the operation on this Aid. /// + /// 3 public bool ReadOnly { get diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs index c0ed2a2..06ef7cb 100755 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs @@ -23,6 +23,7 @@ namespace Tizen.Network.Nfc /// /// A class for NFC CardEmulation mode. It allows applications to handle Card Emulation informations. /// + /// 3 /// http://tizen.org/privilege/nfc.cardemulation public class NfcCardEmulationAdapter : IDisposable { @@ -39,6 +40,7 @@ namespace Tizen.Network.Nfc /// /// Event that is called when receiving Secure Element (SIM/UICC(Universal Integrated Circuit Card)) event. /// + /// 3 public event EventHandler SecureElementEvent { add @@ -62,6 +64,7 @@ namespace Tizen.Network.Nfc /// /// Event that is called when receiving Secure Element(SIM/UICC(Universal Integrated Circuit Card)) transaction event for 'ESE(SmartMX)' type. /// + /// 3 public event EventHandler EseSecureElementTransactionEvent { add @@ -85,6 +88,7 @@ namespace Tizen.Network.Nfc /// /// Event that is called when receiving Secure Element(SIM/UICC(Universal Integrated Circuit Card)) transaction event for 'UICC' type. /// + /// 3 public event EventHandler UiccSecureElementTransactionEvent { add @@ -108,6 +112,7 @@ namespace Tizen.Network.Nfc /// /// Event that is called when when receiving HCE(Host Card Emulation) event. /// + /// 3 public event EventHandler HostCardEmulationEvent { add @@ -159,6 +164,7 @@ namespace Tizen.Network.Nfc /// /// Enable card emulation mode. /// + /// 3 public void EnableCardEmulation() { int ret = Interop.Nfc.CardEmulation.EnableCardEmulation(); @@ -172,6 +178,7 @@ namespace Tizen.Network.Nfc /// /// Disable card emulation mode. /// + /// 3 public void DisableCardEmulation() { int ret = Interop.Nfc.CardEmulation.DisableCardEmulatiion(); @@ -185,6 +192,7 @@ namespace Tizen.Network.Nfc /// /// Get the current card emulation mode. /// + /// 3 /// Enumeration value of NfcSecureElementCardEmulationMode. public NfcSecureElementCardEmulationMode GetCardEmulationMode() { @@ -201,6 +209,7 @@ namespace Tizen.Network.Nfc /// /// Give the priority to the foreground application when dispatching transaction event. /// + /// 3 public void EnableTransactionForegroundDispatch() { int ret = Interop.Nfc.EnableTransactionForegroundDispatch(); @@ -214,6 +223,7 @@ namespace Tizen.Network.Nfc /// /// Disable foreground dispatch for "EVT_TRANSACTION" to the givin application. /// + /// 3 public void DisableTransactionForegroundDispatch() { int ret = Interop.Nfc.DisableTransactionForegroundDispatch(); @@ -227,6 +237,7 @@ namespace Tizen.Network.Nfc /// /// Gets the state whether an application to call this api is currently the activated handler for specific AID. /// + /// 3 /// 'True' when application is currently the activated handler, otherwise 'False'. /// The type of Secure Element. /// Application Id, specified in ISO/IEC 7816-4. @@ -246,6 +257,7 @@ namespace Tizen.Network.Nfc /// /// Gets the state whether an application to call this api is currently the activated handler for category. /// + /// 3 /// 'True' when application is currently the activated handler, otherwise 'False'. /// The type of Secure Element. /// Enumeration value of category. @@ -265,6 +277,7 @@ namespace Tizen.Network.Nfc /// /// Registers a AID for a specific category. /// + /// 3 /// The type of Secure Element. /// Enumeration value of category. /// Application Id, specified in ISO/IEC 7816-4. @@ -281,6 +294,7 @@ namespace Tizen.Network.Nfc /// /// Unregisters a previously registered AID for the specified category. /// + /// 3 /// The type of Secure Element. /// Enumeration value of category. /// Application Id, specified in ISO/IEC 7816-4. @@ -297,6 +311,7 @@ namespace Tizen.Network.Nfc /// /// Sets the application as a preferred handler. /// + /// 3 public void SetPreferredApplication() { int ret = Interop.Nfc.CardEmulation.SetPreferredHandler(); @@ -310,6 +325,7 @@ namespace Tizen.Network.Nfc /// /// Unsets the application as a preferred handler. /// + /// 3 public void UnsetPreferredApplication() { int ret = Interop.Nfc.CardEmulation.UnsetPreferredHandler(); @@ -323,6 +339,7 @@ namespace Tizen.Network.Nfc /// /// Retrieves all registered AID. /// + /// 3 /// List of NfcRegisteredAidInformation objects. /// The type of Secure Element. /// Enumeration value of category. diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcEnumerations.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcEnumerations.cs index 9a11123..6a35053 100644 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcEnumerations.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcEnumerations.cs @@ -21,342 +21,421 @@ namespace Tizen.Network.Nfc /// /// Enumeration for Nfc record TNF (Type Name Format). /// + /// 3 public enum NfcRecordTypeNameFormat { /// /// Empty /// + /// 3 Empty = 0, /// /// RTD(Record Type Definition) type format [NFC RTD] /// + /// 3 WellKnown = 1, /// /// MIME Media types in RFC 2046 [RFC 2046] /// + /// 3 MimeMedia = 2, /// /// Absolute URI as defined in RFC 3986 [RFC 3986] /// + /// 3 Uri = 3, /// /// NFC Forum external type [NFC RTD] /// + /// 3 ExternalRtd = 4, /// /// The payload type is unknown /// + /// 3 Unknown = 5, /// /// final chunk of a chunked NDEF Record /// + /// 3 UnChanged = 6 } /// /// Enumeration for Nfc Encode type. /// + /// 3 public enum NfcEncodeType { /// /// UTF-8 /// + /// 3 Utf8 = 0, /// /// UTF-16 /// + /// 3 Utf16 = 1 } /// /// Enumeration for Nfc Tag type. /// + /// 3 public enum NfcTagType { /// /// Unknown target /// + /// 3 UnknownTarget = 0x00, /// /// Generic PICC /// + /// 3 GenericPicc, /// /// ISO14443 A PICC /// + /// 3 Iso14443APicc, /// /// ISO14443 4A PICC /// + /// 3 Iso144434APicc, /// /// ISO14443 4A PICC /// + /// 3 Iso144433APicc, /// /// Mifare Mini PICC /// + /// 3 MifareMiniPicc, /// /// Mifare 1k PICC /// + /// 3 Mifare1kPicc, /// /// Mifare 4k PICC /// + /// 3 Mifare4kPicc, /// /// Mifare Ultra PICC /// + /// 3 MifareUltraPicc, /// /// Mifare Desfire PICC /// + /// 3 MifareDesfirePicc, /// /// Iso14443 B PICC /// + /// 3 Iso14443BPicc, /// /// Iso14443 4B PICC /// + /// 3 Iso144434BPicc, /// /// ISO14443 B Prime PICC /// + /// 3 Iso14443BPrimePicc, /// /// Felica PICC /// + /// 3 FelicaPicc, /// /// Jewel PICC /// + /// 3 JewelPicc, /// /// ISO15693 PICC /// + /// 3 Iso15693Picc, /// /// Barcode 128 PICC /// + /// 3 Barcode128Picc, /// /// Barcode 256 PICC /// + /// 3 Barcode256Picc, /// /// NFCIP1 Target /// + /// 3 NfcIp1Target, /// /// NFCIP1 Initiator /// + /// 3 NfcIp1Initiator } /// /// Enumeration for Nfc Tag Filter type. /// + /// 3 public enum NfcTagFilterType { /// /// All disable /// + /// 3 AllDisable = 0x0000, /// /// ISO14443A enable /// + /// 3 Iso14443AEnable = 0x0001, /// /// ISO14443B enable /// + /// 3 Iso14443BEnable = 0x0002, /// /// ISO15693 enable /// + /// 3 Iso15693Enable = 0x0004, /// /// FELICA enable /// + /// 3 FelicaEnable = 0x0008, /// /// JEWEL enable /// + /// 3 JewelEnable = 0x0010, /// /// IP enable /// + /// 3 IpEnable = 0x0020, /// /// All enable /// + /// 3 AllEnable = ~0 } /// /// Enumeration for Nfc discovered type. /// + /// 3 public enum NfcDiscoveredType { /// /// Attached, discovered, activated event /// + /// 3 Attached, /// /// Detached, disappeared, deactivated event /// + /// 3 Detached } /// /// Enumeration for Nfc Secure Element event. /// + /// 3 public enum NfcSecureElementEvent { /// /// Start transaction /// + /// 3 StartTransaction, /// /// End transaction /// + /// 3 EndTransaction, /// /// Ready signal /// + /// 3 Connectivity, /// /// CLF(Contactless Front-end) detects a RF field /// + /// 3 FieldOn, /// /// CLF(Contactless Front-end) detects that the RF field is off /// + /// 3 FieldOff, /// /// External reader trys to access secure element /// + /// 3 Transaction, /// /// Changing the emulated secure element type /// + /// 3 TypeChanged, /// /// Changing the card emulation mode /// + /// 3 CardEmulationChanged } /// /// Enumeration for Nfc Filter type. /// + /// 3 public enum NfcSecureElementType { /// /// Disable card emulation /// + /// 3 Disable = 0x00, /// /// SmartMX type card emulation (Embedded Secure Element) /// + /// 3 EmbeddedSE = 0x01, /// /// UICC type card emulation (Universal IC Card) /// + /// 3 Uicc = 0x02, /// /// SDCARD card emulation /// + /// 3 Sdcard = 0x03, /// /// Host based card emulation /// + /// 3 Hce = 0x04 } /// /// Enumeration for Nfc discovered type. /// + /// 3 public enum NfcSecureElementCardEmulationMode { /// /// Card Emulation mode OFF /// + /// 3 Off = 0x00, /// /// Card Emulation mode ON /// + /// 3 On = 0x01 } /// /// Enumeration for SNEP(Simple NDEF Exchange Protocol) event. /// + /// 3 public enum NfcSnepEvent { /// /// server or client stopped /// + /// 3 Stop = 0x00, /// /// server started or client connected /// + /// 3 Start = 0x01, /// /// server received get request /// + /// 3 Get = 0x02, /// /// server received put request /// + /// 3 Put = 0x03, /// /// service registered /// + /// 3 Register = 0x04, /// /// service unregistered /// + /// 3 Unregister = 0x05 } /// /// Enumeration for SNEP request type. /// + /// 3 public enum NfcSnepRequestType { /// /// get request /// + /// 3 Get = 0x01, /// /// put request /// + /// 3 Put = 0x02 } /// /// Enumeration for NFC Card Emulation Category type. /// + /// 3 public enum NfcCardEmulationCategoryType { /// /// NFC payment services /// + /// 3 Payment = 0x01, /// /// all other card emulation services /// + /// 3 Other = 0x02 } /// /// Enumeration for NFC Card Emulation HCE(Host Card Emulation) event type. /// + /// 3 public enum NfcHceEvent { /// /// HCE deactivated /// + /// 3 Deactivated = 0x00, /// /// HCE activated /// + /// 3 Activated = 0x01, /// /// HCE APDU(Application Protocol Data Unit) Received /// + /// 3 ApduReceived = 0x02 } } diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcErrorFactory.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcErrorFactory.cs index 8b3f9df..7af0af5 100644 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcErrorFactory.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcErrorFactory.cs @@ -22,6 +22,7 @@ namespace Tizen.Network.Nfc /// /// Enumeration for Nfc Error. /// + /// 3 public enum NfcError { None = ErrorCode.None, diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcEventArgs.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcEventArgs.cs index 81a9a75..37195ab 100644 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcEventArgs.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcEventArgs.cs @@ -22,6 +22,7 @@ namespace Tizen.Network.Nfc /// /// An extended EventArgs class which contains changed Nfc activation state. /// + /// 3 public class ActivationChangedEventArgs : EventArgs { private bool _activated = false; @@ -34,6 +35,7 @@ namespace Tizen.Network.Nfc /// /// The Nfc activation state. /// + /// 3 public bool Activated { get @@ -46,6 +48,7 @@ namespace Tizen.Network.Nfc /// /// An extended EventArgs class which contains changed Nfc tag discovered. /// + /// 3 public class TagDiscoveredEventArgs : EventArgs { private NfcDiscoveredType _type = NfcDiscoveredType.Detached; @@ -59,6 +62,7 @@ namespace Tizen.Network.Nfc /// /// The tag type. /// + /// 3 public NfcDiscoveredType Type { get @@ -70,6 +74,7 @@ namespace Tizen.Network.Nfc /// /// Tag object /// + /// 3 public NfcTag Tag { get @@ -82,6 +87,7 @@ namespace Tizen.Network.Nfc /// /// An extended EventArgs class which contains changed Nfc p2p target discovered. /// + /// 3 public class P2pTargetDiscoveredEventArgs : EventArgs { private NfcDiscoveredType _type = NfcDiscoveredType.Detached; @@ -95,6 +101,7 @@ namespace Tizen.Network.Nfc /// /// The p2p target type. /// + /// 3 public NfcDiscoveredType Type { get @@ -106,6 +113,7 @@ namespace Tizen.Network.Nfc /// /// P2p object /// + /// 3 public NfcP2p P2pTarget { get @@ -118,6 +126,7 @@ namespace Tizen.Network.Nfc /// /// An extended EventArgs class which contains changed Nfc ndef discovered. /// + /// 3 public class NdefMessageDiscoveredEventArgs : EventArgs { private NfcNdefMessage _ndef; @@ -130,6 +139,7 @@ namespace Tizen.Network.Nfc /// /// The NdefMessage object that is most recently received via NFC p2p mode or tag mode /// + /// 3 public NfcNdefMessage NdefMessage { get @@ -142,6 +152,7 @@ namespace Tizen.Network.Nfc /// /// An extended EventArgs class which contains changed Secure element event. /// + /// 3 public class SecureElementEventArgs : EventArgs { private NfcSecureElementEvent _eventType = NfcSecureElementEvent.StartTransaction; @@ -154,6 +165,7 @@ namespace Tizen.Network.Nfc /// /// The Nfc secure element event. /// + /// 3 public NfcSecureElementEvent EventType { get @@ -166,6 +178,7 @@ namespace Tizen.Network.Nfc /// /// An extended EventArgs class which contains changed Secure element trasaction event. /// + /// 3 public class SecureElementTranscationEventArgs : EventArgs { private NfcSecureElementType _secureElementType = NfcSecureElementType.Disable; @@ -182,6 +195,7 @@ namespace Tizen.Network.Nfc /// /// The Nfc secure element type. /// + /// 3 public NfcSecureElementType SecureElementType { get @@ -192,6 +206,7 @@ namespace Tizen.Network.Nfc /// /// The Nfc secure element aid. /// + /// 3 public byte[] ApplicationID { get @@ -202,6 +217,7 @@ namespace Tizen.Network.Nfc /// /// The Nfc secure element param. /// + /// 3 public byte[] Param { get @@ -214,6 +230,7 @@ namespace Tizen.Network.Nfc /// /// An extended EventArgs class which contains changed HCE(Host Card Emulation) event. /// + /// 3 public class HostCardEmulationEventArgs : EventArgs { private NfcSecureElement _se; @@ -230,6 +247,7 @@ namespace Tizen.Network.Nfc /// /// The Nfc secure element. /// + /// 3 public NfcSecureElement SecureElement { get @@ -240,6 +258,7 @@ namespace Tizen.Network.Nfc /// /// The Nfc hce event. /// + /// 3 public NfcHceEvent HceEvent { get @@ -250,6 +269,7 @@ namespace Tizen.Network.Nfc /// /// The Nfc apdu(Application Protocol Data Unit) /// + /// 3 public byte[] Apdu { get @@ -262,6 +282,7 @@ namespace Tizen.Network.Nfc /// /// An extended EventArgs class which contains changed HCE(Host Card Emulation) event. /// + /// 3 public class P2pDataReceivedEventArgs : EventArgs { private NfcP2p _p2pTarget; @@ -276,6 +297,7 @@ namespace Tizen.Network.Nfc /// /// The Nfc p2p target. /// + /// 3 public NfcP2p P2pTarget { get @@ -286,6 +308,7 @@ namespace Tizen.Network.Nfc /// /// The Nfc ndef message. /// + /// 3 public NfcNdefMessage NdefMessage { get diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcManager.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcManager.cs index 14294f7..439fec7 100755 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcManager.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcManager.cs @@ -24,12 +24,14 @@ namespace Tizen.Network.Nfc /// /// A class for NFC management. It allows applications to use NFC service. /// + /// 3 /// http://tizen.org/privilege/nfc static public class NfcManager { /// /// Whether NFC is supported. /// + /// 3 static public bool IsSupported { get @@ -55,6 +57,7 @@ namespace Tizen.Network.Nfc /// /// NFC Activation state. /// + /// 3 static public bool IsActivated { get @@ -80,6 +83,7 @@ namespace Tizen.Network.Nfc /// /// The Tag Filter type. /// + /// 3 static public NfcTagFilterType TagFilterType { get @@ -125,6 +129,7 @@ namespace Tizen.Network.Nfc /// /// The Secure Element type. /// + /// 3 static public NfcSecureElementType SecureElementType { get @@ -170,6 +175,7 @@ namespace Tizen.Network.Nfc /// /// Enable or disable the system handling for tag and target discovered event. /// + /// 3 static public bool SystemHandlerEnabled { get @@ -213,6 +219,7 @@ namespace Tizen.Network.Nfc /// /// The cached Ndef Message. /// + /// 3 static public NfcNdefMessage CachedNdefMessage { get @@ -238,6 +245,7 @@ namespace Tizen.Network.Nfc /// /// Gets Tag adapter object. /// + /// 3 static public NfcTagAdapter GetTagAdapter() { bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); @@ -261,6 +269,7 @@ namespace Tizen.Network.Nfc /// /// Gets P2p adapter object. /// + /// 3 static public NfcP2pAdapter GetP2pAdapter() { bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); @@ -284,6 +293,7 @@ namespace Tizen.Network.Nfc /// /// Gets Card Emulation adepter object. /// + /// 3 static public NfcCardEmulationAdapter GetCardEmulationAdapter() { bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); @@ -307,6 +317,7 @@ namespace Tizen.Network.Nfc /// /// Activates Nfc asynchronously. /// + /// 3 /// A task indicates whether the Activate method is done or not. static public Task SetActivationAsync(bool activation) { @@ -330,6 +341,7 @@ namespace Tizen.Network.Nfc /// /// The Activation changed event. /// + /// 3 static public event EventHandler ActivationChanged { add @@ -373,6 +385,7 @@ namespace Tizen.Network.Nfc /// /// The Ndef discovered event. /// + /// 3 static public event EventHandler NdefMessageDiscovered { add diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcNdefMessage.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcNdefMessage.cs index 0e22636..eedbecd 100755 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcNdefMessage.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcNdefMessage.cs @@ -23,6 +23,7 @@ namespace Tizen.Network.Nfc /// /// A class for Ndef Message information. It allows applications to use Ndef Message information. /// + /// 3 public class NfcNdefMessage : IDisposable { private bool disposed = false; @@ -32,6 +33,7 @@ namespace Tizen.Network.Nfc /// /// The number of record in NDEF message. /// + /// 3 public int RecordCount { get @@ -49,6 +51,7 @@ namespace Tizen.Network.Nfc /// /// Creates a object for the access point. /// + /// 3 public NfcNdefMessage() { int ret = Interop.Nfc.NdefMessage.Create(out _messageHandle); @@ -98,6 +101,7 @@ namespace Tizen.Network.Nfc /// /// Appends a record into NDEF message. /// + /// 3 /// Whether appending the record succeeded. /// The NfcNdefRecord object that will be appended into NDEF message. public bool AppendRecord(NfcNdefRecord record) @@ -121,6 +125,7 @@ namespace Tizen.Network.Nfc /// /// Inserts a record at index into NDEF message. /// + /// 3 /// Whether insterting the record succeeded. /// The index of record ( starts from 0 ). /// The NfcNdefRecord object that will be appended into NDEF message. @@ -145,6 +150,7 @@ namespace Tizen.Network.Nfc /// /// Inserts a record at index into NDEF message. /// + /// 3 /// Whether removing the record succeeded. /// The index of record ( starts from 0 ). public bool RemoveRecord(int index) @@ -164,6 +170,7 @@ namespace Tizen.Network.Nfc /// /// Gets record by index. /// + /// 3 /// The NfcNdefRecord object. /// The index of record ( starts from 0 ). public NfcNdefRecord GetRecord(int index) diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcNdefRecord.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcNdefRecord.cs index e8815f8..00b06e1 100755 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcNdefRecord.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcNdefRecord.cs @@ -23,6 +23,7 @@ namespace Tizen.Network.Nfc /// /// A class for Ndef Record information. It allows applications to use Ndef Record information. /// + /// 3 public class NfcNdefRecord : IDisposable { private bool disposed = false; @@ -31,6 +32,7 @@ namespace Tizen.Network.Nfc /// /// The record ID. /// + /// 3 public byte[] Id { get @@ -51,6 +53,7 @@ namespace Tizen.Network.Nfc /// /// The record payload. /// + /// 3 public byte[] Payload { get @@ -71,6 +74,7 @@ namespace Tizen.Network.Nfc /// /// The record type. /// + /// 3 public byte[] Type { get @@ -91,6 +95,7 @@ namespace Tizen.Network.Nfc /// /// The record TNF(Type Name Format) value. /// + /// 3 public NfcRecordTypeNameFormat Tnf { get @@ -108,6 +113,7 @@ namespace Tizen.Network.Nfc /// /// The text of text type Ndef record. /// + /// 3 public string Text { get @@ -125,6 +131,7 @@ namespace Tizen.Network.Nfc /// /// The language code of text type Ndef record. /// + /// 3 public string LanguageCode { get @@ -142,6 +149,7 @@ namespace Tizen.Network.Nfc /// /// The encoding type of text type Ndef record. /// + /// 3 public NfcEncodeType EncodeType { get @@ -159,6 +167,7 @@ namespace Tizen.Network.Nfc /// /// The URI of uri type Ndef record. /// + /// 3 public string Uri { get @@ -176,6 +185,7 @@ namespace Tizen.Network.Nfc /// /// The mime type of mime type Ndef record. /// + /// 3 public string MimeType { get @@ -193,6 +203,7 @@ namespace Tizen.Network.Nfc /// /// Creates a record with given parameter value. /// + /// 3 /// The type name format. /// The specified type name. /// The record ID. @@ -212,6 +223,7 @@ namespace Tizen.Network.Nfc /// /// Creates a record with text type payload. /// + /// 3 /// The encoded text. /// The language code string value followed by IANA[RFC 3066] (ex: en-US, ko-KR). /// The encoding type. @@ -229,6 +241,7 @@ namespace Tizen.Network.Nfc /// /// Creates a record with text type payload. /// + /// 3 /// The URI string that will be stored in the payload. public NfcNdefRecord(string uri) { @@ -244,6 +257,7 @@ namespace Tizen.Network.Nfc /// /// Creates a record with text type payload. /// + /// 3 /// The mime type [RFC 2046] (ex. text/plain, image/jpeg ) This value is stored in type field. /// The data in form of bytes array. /// The size of data. diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2p.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2p.cs index 1010d81..a11e859 100755 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2p.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2p.cs @@ -24,6 +24,7 @@ namespace Tizen.Network.Nfc /// /// A class for managing the p2p target information. /// + /// 3 public class NfcP2p : IDisposable { private IntPtr _p2pTargetHandle = IntPtr.Zero; @@ -36,6 +37,7 @@ namespace Tizen.Network.Nfc /// /// The event for receiving data from NFC peer-to-peer target. /// + /// 3 public event EventHandler P2pDataReceived { add @@ -87,6 +89,7 @@ namespace Tizen.Network.Nfc /// /// Sends data to NFC peer-to-peer target. /// + /// 3 /// NfcNdefMessage object. public Task SendNdefMessageAsync(NfcNdefMessage ndefMessage) { @@ -132,6 +135,7 @@ namespace Tizen.Network.Nfc /// /// A class for managing the snep(Simple NDEF Exchange Protocol) information. /// + /// 3 public class NfcSnep : IDisposable { private IntPtr _snepHandle = IntPtr.Zero; diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2pAdapter.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2pAdapter.cs index 646f178..4b254b1 100755 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2pAdapter.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2pAdapter.cs @@ -23,6 +23,7 @@ namespace Tizen.Network.Nfc /// /// A class for NFC P2P(Peer to Peer) mode. It allows applications to handle P2P informations. /// + /// 3 /// http://tizen.org/privilege/nfc public class NfcP2pAdapter : IDisposable { @@ -36,6 +37,7 @@ namespace Tizen.Network.Nfc /// /// The event for receiving NFC peer-to-peer target discovered notification. /// + /// 3 public event EventHandler P2pTargetDiscovered { add @@ -81,6 +83,7 @@ namespace Tizen.Network.Nfc /// /// Gets current connected p2p target. /// + /// 3 /// NfcP2p object. public NfcP2p GetConnectedTarget() { diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcSecureElement.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcSecureElement.cs index 02c8986..c412417 100644 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcSecureElement.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcSecureElement.cs @@ -23,6 +23,7 @@ namespace Tizen.Network.Nfc /// /// A class for managing the Secure Element information. /// + /// 3 public class NfcSecureElement : IDisposable { private IntPtr _secureElementHandle = IntPtr.Zero; @@ -60,6 +61,7 @@ namespace Tizen.Network.Nfc /// /// Send APDU(Application Protocol Data Unit) response to CLF(Contactless Front-end). /// + /// 3 /// The bytes array of response data. /// The size of response bytes array. public void HceSendApduResponse(byte[] response, uint responseLength) diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs index d1d5d65..567f52d 100755 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs @@ -24,6 +24,7 @@ namespace Tizen.Network.Nfc /// /// A class for managing the Tag information. /// + /// 3 public class NfcTag : IDisposable { private bool disposed = false; @@ -32,6 +33,7 @@ namespace Tizen.Network.Nfc /// /// The type of NFC tag. /// + /// 3 public NfcTagType Type { get @@ -49,6 +51,7 @@ namespace Tizen.Network.Nfc /// /// Whether the given NFC tag supports NDEF messages. /// + /// 3 public bool IsSupportNdef { get @@ -67,6 +70,7 @@ namespace Tizen.Network.Nfc /// /// The maximum NDEF message size that can be stored in NFC tag. /// + /// 3 public uint MaximumNdefSize { get @@ -84,6 +88,7 @@ namespace Tizen.Network.Nfc /// /// The size of NDEF message that stored in the tag. /// + /// 3 public uint NdefSize { get @@ -130,6 +135,7 @@ namespace Tizen.Network.Nfc /// /// Retrieves all tag information. /// + /// 3 /// List of NfcTagInformation objects. public IEnumerable ForeachInformation() { @@ -162,6 +168,7 @@ namespace Tizen.Network.Nfc /// /// Transceives the data of the raw format card. /// + /// 3 /// The binary data for parameter or additional commands. public Task TransceiveAsync(byte[] buffer) { @@ -192,6 +199,7 @@ namespace Tizen.Network.Nfc /// /// Reads NDEF formatted data from NFC tag. /// + /// 3 public Task ReadNdefMessageAsync() { var task = new TaskCompletionSource(); @@ -222,6 +230,7 @@ namespace Tizen.Network.Nfc /// /// Writes NDEF formatted data. /// + /// 3 /// The NfcNdefMessage object. public Task WriteNdefMessageAsync(NfcNdefMessage ndefMessage) { @@ -246,6 +255,7 @@ namespace Tizen.Network.Nfc /// /// Formats the detected tag that can store NDEF message. /// + /// 3 /// The key value that may need to format the tag. public Task FormatNdefMessageAsync(byte[] keyValue) { diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTagAdapter.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTagAdapter.cs index 97532b5..5c6d8a9 100755 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTagAdapter.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTagAdapter.cs @@ -23,6 +23,7 @@ namespace Tizen.Network.Nfc /// /// A class for NFC Tag mode. It allows applications to handle Tag informations. /// + /// 3 /// http://tizen.org/privilege/nfc public class NfcTagAdapter : IDisposable { @@ -36,6 +37,7 @@ namespace Tizen.Network.Nfc /// /// The event for receiving tag discovered notification. /// + /// 3 public event EventHandler TagDiscovered { add @@ -81,6 +83,7 @@ namespace Tizen.Network.Nfc /// /// Gets current connected tag. /// + /// 3 /// NfcTag object. public NfcTag GetConnectedTag() { -- 2.7.4