Class NfcP2p

    Definition

    Namespace:
    Tizen.Network.Nfc
    Assembly:
    Tizen.Network.Nfc.dll

    The class for managing the P2P target information.

    public class NfcP2p : IDisposable
    Inheritance
    object
    NfcP2p
    Implements
    System.IDisposable

    Methods

    View Source

    Dispose()

    Dispose

    Declaration
    public void Dispose()
    View Source

    ~NfcP2p()

    NfcP2p destructor.

    Declaration
    protected ~NfcP2p()
    View Source

    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 Source

    P2pDataReceived

    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
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX