Esempio n. 1
0
 /// <summary>
 /// Retrieves NFC P2p remote device.
 /// </summary>
 /// <returns>Returns true if initialize succeeded, false otherwise</returns>
 public bool GetP2p()
 {
     try
     {
         nfcP2P = NfcP2pAdapter.GetConnectedTarget();
         return(true);
     }
     catch (Exception e)
     {
         LogImplementation.DLog("Failed get p2p device " + e.Message);
         return(false);
     }
 }
 /// <summary>
 /// Retrieves NFC P2P remote device.
 /// </summary>
 /// <returns>Returns true if initialize succeeded, false otherwise</returns>
 public bool GetP2P()
 {
     try
     {
         p2pDevice = p2pAdapter.GetConnectedTarget();
         return(true);
     }
     catch (Exception e)
     {
         Tizen.Log.Debug("NFC_APP", "Failed get p2p device " + e.Message);
         return(false);
     }
 }