Class NfcP2p
Definition
- Namespace:
- Tizen.Network.Nfc
- Assembly:
- Tizen.Network.Nfc.dll
- API Level:
- 3
The class for managing the P2P target information.
public class NfcP2p : IDisposable
- Inheritance
-
NfcP2p
- Implements
Methods
View SourceDispose()
Dispose
Declaration
public void Dispose()
API Level: 3
View SourceFinalize()
NfcP2p destructor.
Declaration
protected void Finalize()
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 |
---|---|
Task<NfcError> |
Exceptions
Type | Condition |
---|---|
NotSupportedException | Thrown when the NFC is not supported. |
ArgumentException | Thrown when the method fails due to an invalid parameter. |
InvalidOperationException | Thrown when the method fails due to an invalid operation. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/nfc
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 |
---|---|
EventHandler<P2pDataReceivedEventArgs> |