Class NfcP2pAdapter

Definition

Namespace:
Tizen.Network.Nfc
Assembly:
Tizen.Network.Nfc.dll
API Level:
3
Privilege Level:
public
Privilege:
http://tizen.org/privilege/nfc

The class for the NFC P2P (Peer-to-Peer) mode. It allows applications to handle P2P informations.

C#
Copy
public class NfcP2pAdapter : IDisposable
Inheritance
System.Object
NfcP2pAdapter
Implements
System.IDisposable

Methods

View Source

Dispose()

Dispose

Declaration
C#
Copy
public void Dispose()
API Level: 3
View Source

Finalize()

NfcP2pAdapter destructor

Declaration
C#
Copy
protected void Finalize()
View Source

GetConnectedTarget()

Gets the current connected P2P target.

Declaration
C#
Copy
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.

API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/nfc

Events

View Source

P2pTargetDiscovered

The event for receiving the NFC peer-to-peer target discovered notification.

Declaration
C#
Copy
public event EventHandler<P2pTargetDiscoveredEventArgs> P2pTargetDiscovered
Event Type
Type Description
System.EventHandler<P2pTargetDiscoveredEventArgs>
API Level: 3

Implements

System.IDisposable