SmartCardEmulator.ConnectionDeactivated イベント

定義

デバイスとの接続が物理的に切断されたとき、または NFC リーダーが別のアプリへの接続を要求したときに発生します。

// Register
event_token ConnectionDeactivated(TypedEventHandler<SmartCardEmulator, SmartCardEmulatorConnectionDeactivatedEventArgs const&> const& handler) const;

// Revoke with event_token
void ConnectionDeactivated(event_token const* cookie) const;

// Revoke with event_revoker
SmartCardEmulator::ConnectionDeactivated_revoker ConnectionDeactivated(auto_revoke_t, TypedEventHandler<SmartCardEmulator, SmartCardEmulatorConnectionDeactivatedEventArgs const&> const& handler) const;
public event TypedEventHandler<SmartCardEmulator,SmartCardEmulatorConnectionDeactivatedEventArgs> ConnectionDeactivated;
function onConnectionDeactivated(eventArgs) { /* Your code */ }
smartCardEmulator.addEventListener("connectiondeactivated", onConnectionDeactivated);
smartCardEmulator.removeEventListener("connectiondeactivated", onConnectionDeactivated);
- or -
smartCardEmulator.onconnectiondeactivated = onConnectionDeactivated;
Public Custom Event ConnectionDeactivated As TypedEventHandler(Of SmartCardEmulator, SmartCardEmulatorConnectionDeactivatedEventArgs) 

イベントの種類

適用対象

こちらもご覧ください