summaryrefslogtreecommitdiff
path: root/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs
diff options
context:
space:
mode:
authorHyihong Chae <hh.chae@samsung.com>2017-07-04 20:08:35 +0900
committerHyihong Chae <hh.chae@samsung.com>2017-07-04 20:15:00 +0900
commitaebfa1916f349ddac5fdf568aac4d90b3e950425 (patch)
tree17b904300e18bb0f64a0b4e21645c59cd702d501 /Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs
parent2d9cf77811cc4d8c8b364a37524d031aca783d3f (diff)
downloadnfc-submit/tizen/20170704.111729.tar.gz
nfc-submit/tizen/20170704.111729.tar.bz2
nfc-submit/tizen/20170704.111729.zip
Change-Id: I50c7cd78bddd3b811c0903a3932e0cfbc97cfc9f Signed-off-by: HyiHong Chae <hh.chae@samsung.com>
Diffstat (limited to 'Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs')
-rwxr-xr-xTizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs15
1 files changed, 14 insertions, 1 deletions
diff --git a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs
index 567f52d..7643171 100755
--- a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs
+++ b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs
@@ -137,6 +137,8 @@ namespace Tizen.Network.Nfc
/// </summary>
/// <since_tizen> 3 </since_tizen>
/// <returns>List of NfcTagInformation objects.</returns>
+ /// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
+ /// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
public IEnumerable<NfcTagInformation> ForeachInformation()
{
List<NfcTagInformation> infoList = new List<NfcTagInformation>();
@@ -170,10 +172,13 @@ namespace Tizen.Network.Nfc
/// </summary>
/// <since_tizen> 3 </since_tizen>
/// <param name="buffer">The binary data for parameter or additional commands.</param>
+ /// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
+ /// <exception cref="ArgumentException">Thrown when method is failed due to an invalid parameter.</exception>
+ /// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
public Task<byte[]> TransceiveAsync(byte[] buffer)
{
var task = new TaskCompletionSource<byte[]>();
-
+
byte[] resultBuffer = null;
Interop.Nfc.TagTransceiveCompletedCallback callback = (int result, IntPtr resultData, int dataSize, IntPtr userData) =>
{
@@ -200,6 +205,8 @@ namespace Tizen.Network.Nfc
/// Reads NDEF formatted data from NFC tag.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ /// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
+ /// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
public Task<NfcNdefMessage> ReadNdefMessageAsync()
{
var task = new TaskCompletionSource<NfcNdefMessage>();
@@ -232,6 +239,9 @@ namespace Tizen.Network.Nfc
/// </summary>
/// <since_tizen> 3 </since_tizen>
/// <param name="ndefMessage">The NfcNdefMessage object.</param>
+ /// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
+ /// <exception cref="ArgumentException">Thrown when method is failed due to an invalid parameter.</exception>
+ /// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
public Task<NfcError> WriteNdefMessageAsync(NfcNdefMessage ndefMessage)
{
var task = new TaskCompletionSource<NfcError>();
@@ -257,6 +267,9 @@ namespace Tizen.Network.Nfc
/// </summary>
/// <since_tizen> 3 </since_tizen>
/// <param name="keyValue">The key value that may need to format the tag.</param>
+ /// <exception cref="NotSupportedException">Thrown when Nfc is not supported.</exception>
+ /// <exception cref="ArgumentException">Thrown when method is failed due to an invalid parameter.</exception>
+ /// <exception cref="InvalidOperationException">Thrown when the method failed due to invalid operation.</exception>
public Task<NfcError> FormatNdefMessageAsync(byte[] keyValue)
{
var task = new TaskCompletionSource<NfcError>();