/// <summary> /// Initialize to enable NFC P2p operation. /// </summary> /// <returns>Returns true if initialize succeeded, false otherwise</returns> public bool P2p_init() { try { NfcP2pAdapter = NfcManager.GetP2pAdapter(); return(true); } catch (Exception e) { LogImplementation.DLog("Failed initialize P2P " + e.Message); return(false); } }
/// <summary> /// Initializes P2P adapter. /// </summary> /// <returns>Returns true if initialize succeeded, false otherwise</returns> public bool P2PInit() { try { p2pAdapter = NfcManager.GetP2pAdapter(); return(true); } catch (Exception e) { Tizen.Log.Debug("NFC_APP", "Failed initialize P2P " + e.Message); return(false); } }