summaryrefslogtreecommitdiff
path: root/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs')
-rw-r--r--Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs86
1 files changed, 1 insertions, 85 deletions
diff --git a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs
index 23d7f3a..a9cef59 100644
--- a/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs
+++ b/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs
@@ -60,29 +60,6 @@ namespace Tizen.Network.Nfc
}
/// <summary>
- /// Event that is called when receiving Secure Element(SIM/UICC(Universal Integrated Circuit Card)) transaction event for 'Disable' type.
- /// </summary>
- public event EventHandler<SecureElementTranscationEventArgs> DisableSecureElementTransactionEvent
- {
- add
- {
- if (_secureElementTransactionEvent == null)
- {
- RegisterSecureElementTransactionEvent(NfcSecureElementType.Disable);
- }
- _secureElementTransactionEvent += value;
- }
- remove
- {
- _secureElementTransactionEvent -= value;
- if (_secureElementTransactionEvent == null)
- {
- UnregisterSecureElementTransactionEvent(NfcSecureElementType.Disable);
- }
- }
- }
-
- /// <summary>
/// Event that is called when receiving Secure Element(SIM/UICC(Universal Integrated Circuit Card)) transaction event for 'ESE(SmartMX)' type.
/// </summary>
public event EventHandler<SecureElementTranscationEventArgs> EseSecureElementTransactionEvent
@@ -129,52 +106,6 @@ namespace Tizen.Network.Nfc
}
/// <summary>
- /// Event that is called when receiving Secure Element(SIM/UICC(Universal Integrated Circuit Card)) transaction event for 'SDCard' type.
- /// </summary>
- public event EventHandler<SecureElementTranscationEventArgs> SdcardSecureElementTransactionEvent
- {
- add
- {
- if (_secureElementTransactionEvent == null)
- {
- RegisterSecureElementTransactionEvent(NfcSecureElementType.Sdcard);
- }
- _secureElementTransactionEvent += value;
- }
- remove
- {
- _secureElementTransactionEvent -= value;
- if (_secureElementTransactionEvent == null)
- {
- UnregisterSecureElementTransactionEvent(NfcSecureElementType.Sdcard);
- }
- }
- }
-
- /// <summary>
- /// Event that is called when receiving Secure Element(SIM/UICC(Universal Integrated Circuit Card)) transaction event for 'HCE(Host based card emulation)' type.
- /// </summary>
- public event EventHandler<SecureElementTranscationEventArgs> HceSecureElementTransactionEvent
- {
- add
- {
- if (_secureElementTransactionEvent == null)
- {
- RegisterSecureElementTransactionEvent(NfcSecureElementType.Hce);
- }
- _secureElementTransactionEvent += value;
- }
- remove
- {
- _secureElementTransactionEvent -= value;
- if (_secureElementTransactionEvent == null)
- {
- UnregisterSecureElementTransactionEvent(NfcSecureElementType.Hce);
- }
- }
- }
-
- /// <summary>
/// Event that is called when when receiving HCE(Host Card Emulation) event.
/// </summary>
public event EventHandler<HostCardEmulationEventArgs> HostCardEmulationEvent
@@ -294,22 +225,6 @@ namespace Tizen.Network.Nfc
}
/// <summary>
- /// Set the default route for each device status.
- /// </summary>
- /// <param name="seTypeInPoweredOn">The type of default Secure Element when device is powered on.</param>
- /// <param name="seTypeInPoweredOff">The type of default Secure Element when device is powered off.</param>
- /// <param name="seTypeInLowBattery">The type of default Secure Element when battery is low.</param>
- public void SetDefaultRoute(NfcSecureElementType seTypeInPoweredOn, NfcSecureElementType seTypeInPoweredOff, NfcSecureElementType seTypeInLowBattery)
- {
- int ret = Interop.Nfc.CardEmulation.SetDefaultRoute((int)seTypeInPoweredOn, (int)seTypeInPoweredOff, (int)seTypeInLowBattery);
- if (ret != (int)NfcError.None)
- {
- Log.Error(Globals.LogTag, "Failed to set default route, Error - " + (NfcError)ret);
- NfcErrorFactory.ThrowNfcException(ret);
- }
- }
-
- /// <summary>
/// Gets the state whether an application to call this api is currently the activated handler for specific AID.
/// </summary>
/// <returns>'True' when application is currently the activated handler, otherwise 'False'.</returns>
@@ -497,6 +412,7 @@ namespace Tizen.Network.Nfc
if (ret != (int)NfcError.None)
{
Log.Error(Globals.LogTag, "Failed to set host card emulation event callback, Error - " + (NfcError)ret);
+ NfcErrorFactory.ThrowNfcException(ret);
}
}