diff options
author | Hyihong Chae <hh.chae@samsung.com> | 2017-07-04 20:08:35 +0900 |
---|---|---|
committer | Hyihong Chae <hh.chae@samsung.com> | 2017-07-04 20:15:00 +0900 |
commit | aebfa1916f349ddac5fdf568aac4d90b3e950425 (patch) | |
tree | 17b904300e18bb0f64a0b4e21645c59cd702d501 /Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs | |
parent | 2d9cf77811cc4d8c8b364a37524d031aca783d3f (diff) | |
download | nfc-submit/tizen/20170704.111729.tar.gz nfc-submit/tizen/20170704.111729.tar.bz2 nfc-submit/tizen/20170704.111729.zip |
added throw exception commentssubmit/tizen_4.0_unified/20170814.115522submit/tizen_4.0/20170828.100003submit/tizen_4.0/20170814.115522submit/tizen_4.0/20170811.094300submit/tizen/20170705.015855submit/tizen/20170705.012432submit/tizen/20170704.111729accepted/tizen/unified/20170705.162439accepted/tizen/4.0/unified/20170828.223320accepted/tizen/4.0/unified/20170816.014710tizen_4.0accepted/tizen_unifiedaccepted/tizen_4.0_unified
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-x | Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs | 15 |
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>(); |