Class NfcP2pAdapter
Definition
- Assembly:
- Tizen.Network.Nfc.dll
The class for the NFC P2P (Peer-to-Peer) mode. It allows applications to handle P2P informations.
public class NfcP2pAdapter : IDisposable
- Inheritance
-
objectNfcP2pAdapter
- Implements
-
System.IDisposable
Methods
View SourceDispose()
Dispose
Declaration
public void Dispose()
~NfcP2pAdapter()
NfcP2pAdapter destructor
Declaration
protected ~NfcP2pAdapter()
GetConnectedTarget()
Gets the current connected P2P target.
Declaration
public NfcP2p GetConnectedTarget()
Returns
Type | Description |
---|---|
NfcP2p | The NfcP2p object. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the NFC is not supported. |
System.InvalidOperationException | Thrown when the method fails due to an invalid operation. |
Events
View SourceP2pTargetDiscovered
The event for receiving the NFC peer-to-peer target discovered notification.
Declaration
public event EventHandler<P2pTargetDiscoveredEventArgs> P2pTargetDiscovered
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><P2pTargetDiscoveredEventArgs> |
Implements
System.IDisposable