Class NfcP2p
Definition
- Assembly:
- Tizen.Network.Nfc.dll
The class for managing the P2P target information.
public class NfcP2p : IDisposable
- Inheritance
-
objectNfcP2p
- Implements
-
System.IDisposable
Methods
View SourceDispose()
Dispose
Declaration
public void Dispose()
~NfcP2p()
NfcP2p destructor.
Declaration
protected ~NfcP2p()
SendNdefMessageAsync(NfcNdefMessage)
Sends data to the NFC peer-to-peer target.
Declaration
public Task<NfcError> SendNdefMessageAsync(NfcNdefMessage ndefMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| NfcNdefMessage | ndefMessage | The NfcNdefMessage object. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><NfcError> |
Exceptions
| Type | Condition |
|---|---|
| System.NotSupportedException | Thrown when the NFC is not supported. |
| System.ArgumentException | Thrown when the method fails due to an invalid parameter. |
| System.InvalidOperationException | Thrown when the method fails due to an invalid operation. |
Events
View SourceP2pDataReceived
The event for receiving data from the NFC peer-to-peer target.
Declaration
public event EventHandler<P2pDataReceivedEventArgs> P2pDataReceived
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><P2pDataReceivedEventArgs> |
Implements
System.IDisposable