Class NfcP2p
Definition
- Namespace:
- Tizen.Network.Nfc
- Assembly:
- Tizen.Network.Nfc.dll
- API Level:
- 3
The class for managing the P2P target information.
C#Copypublic class NfcP2p : IDisposable
- Inheritance
-
System.ObjectNfcP2p
- Implements
-
System.IDisposable
Methods
Declaration
C#Copypublic void Dispose()
API Level: 3
Declaration
C#Copyprotected void Finalize()
Declaration
C#Copypublic Task<NfcError> SendNdefMessageAsync(NfcNdefMessage ndefMessage)
Parameters
Type | Name | Description |
---|---|---|
NfcNdefMessage | ndefMessage | The NfcNdefMessage object. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<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. |
InvalidOperationException | Thrown when the method fails due to an invalid operation. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/nfc
Events
Declaration
C#Copypublic event EventHandler<P2pDataReceivedEventArgs> P2pDataReceived
Event Type
Type | Description |
---|---|
System.EventHandler<P2pDataReceivedEventArgs> |
API Level: 3
Implements
System.IDisposable