namespace Tizen.Network.Nfc
{
/// <summary>
- /// A class for NFC management. It allows applications to use NFC service.
+ /// A class for the NFC management. It allows applications to use the NFC service.
/// </summary>
/// <since_tizen> 3 </since_tizen>
/// <privilege>http://tizen.org/privilege/nfc</privilege>
static public class NfcManager
{
/// <summary>
- /// Whether NFC is supported.
+ /// Checks whether the NFC is supported.
/// </summary>
/// <since_tizen> 3 </since_tizen>
static public bool IsSupported
{
get
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{
}
/// <summary>
- /// NFC Activation state.
+ /// The NFC Activation state.
/// </summary>
/// <since_tizen> 3 </since_tizen>
static public bool IsActivated
{
get
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{
{
get
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
- bool isTagSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.tag", out isTagSupported);
+ bool isNfcSupported = false;
+ bool isTagSupported = false;
+
+ Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ Information.TryGetValue("http://tizen.org/feature/network.nfc.tag", out isTagSupported);
if (!isNfcSupported || !isTagSupported)
{
}
set
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
- bool isTagSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.tag", out isTagSupported);
+ bool isNfcSupported = false;
+ bool isTagSupported = false;
+
+ Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ Information.TryGetValue("http://tizen.org/feature/network.nfc.tag", out isTagSupported);
if (!isNfcSupported || !isTagSupported)
{
{
get
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
- bool isCeSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.cardemulation", out isCeSupported);
+ bool isNfcSupported = false;
+ bool isCeSupported = false;
+
+ Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ Information.TryGetValue("http://tizen.org/feature/network.nfc.cardemulation", out isCeSupported);
if (!isNfcSupported || !isCeSupported)
{
}
set
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
- bool isCeSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.cardemulation", out isCeSupported);
+ bool isNfcSupported = false;
+ bool isCeSupported = false;
+
+ Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ Information.TryGetValue("http://tizen.org/feature/network.nfc.cardemulation", out isCeSupported);
if (!isNfcSupported || !isCeSupported)
{
}
/// <summary>
- /// Enable or disable the system handling for tag and target discovered event.
+ /// Enables or disables the system handling for the tag and target discovered event.
/// </summary>
/// <since_tizen> 3 </since_tizen>
/// <privilege>http://tizen.org/privilege/nfc</privilege>
{
get
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{
}
set
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{
}
/// <summary>
- /// The cached Ndef Message.
+ /// The cached NDEF message.
/// </summary>
/// <since_tizen> 3 </since_tizen>
static public NfcNdefMessage CachedNdefMessage
{
get
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{
}
/// <summary>
- /// Gets Tag adapter object.
+ /// Gets the Tag adapter object.
/// </summary>
/// <since_tizen> 3 </since_tizen>
static public NfcTagAdapter GetTagAdapter()
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
- bool isTagSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.tag", out isTagSupported);
+ bool isNfcSupported = false;
+ bool isTagSupported = false;
+
+ Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ Information.TryGetValue("http://tizen.org/feature/network.nfc.tag", out isTagSupported);
if (!isNfcSupported || !isTagSupported)
{
}
/// <summary>
- /// Gets P2p adapter object.
+ /// Gets the P2P adapter object.
/// </summary>
/// <since_tizen> 3 </since_tizen>
static public NfcP2pAdapter GetP2pAdapter()
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
- bool isP2pSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.p2p", out isP2pSupported);
+ bool isNfcSupported = false;
+ bool isP2pSupported = false;
+
+ Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ Information.TryGetValue("http://tizen.org/feature/network.nfc.p2p", out isP2pSupported);
if (!isNfcSupported || !isP2pSupported)
{
}
/// <summary>
- /// Gets Card Emulation adepter object.
+ /// Gets the Card Emulation adapter object.
/// </summary>
/// <since_tizen> 3 </since_tizen>
static public NfcCardEmulationAdapter GetCardEmulationAdapter()
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
- bool isCeSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc.cardemulation", out isCeSupported);
+ bool isNfcSupported = false;
+ bool isCeSupported = false;
+
+ Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ Information.TryGetValue("http://tizen.org/feature/network.nfc.cardemulation", out isCeSupported);
if (!isNfcSupported || !isCeSupported)
{
}
/// <summary>
- /// Activates Nfc asynchronously.
+ /// Activates the NFC asynchronously.
/// </summary>
/// <since_tizen> 3 </since_tizen>
/// <returns>A task indicates whether the Activate method is done or not.</returns>
/// <privilege>http://tizen.org/privilege/nfc.admin</privilege>
static public Task SetActivationAsync(bool activation)
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{
{
add
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{
}
remove
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{
}
/// <summary>
- /// The Ndef discovered event.
+ /// The NDEF discovered event.
/// </summary>
/// <since_tizen> 3 </since_tizen>
static public event EventHandler<NdefMessageDiscoveredEventArgs> NdefMessageDiscovered
{
add
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{
}
remove
{
- bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
+ bool isNfcSupported = false;
+
+ Information.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported);
if (!isNfcSupported)
{