Class BluetoothOppServer

    Definition

    Namespace:
    Tizen.Network.Bluetooth
    Assembly:
    Tizen.Network.Bluetooth.dll

    A class which is used to handle the connection and send and receive the object over Opp profile.

    public class BluetoothOppServer
    Inheritance
    object
    BluetoothOppServer

    Constructors

    View Source

    BluetoothOppServer()

    The constructor

    Declaration
    public BluetoothOppServer()

    Methods

    View Source

    AcceptPush(string)

    Accept File Push request.

    Declaration
    public int AcceptPush(string FileName)
    Parameters
    Type Name Description
    string FileName

    File name to accept.

    Returns
    Type Description
    int

    The id of transfer.

    View Source

    CancelTransfer(int)

    Cancel the ongoing transfer session.

    Declaration
    public void CancelTransfer(int TransferId)
    Parameters
    Type Name Description
    int TransferId

    tranfer ID.

    View Source

    RejectPush()

    Reject File Push request.

    Declaration
    public void RejectPush()
    View Source

    SetDestinationPath(string)

    Cancel the ongoing transfer session.

    Declaration
    public void SetDestinationPath(string FilePath)
    Parameters
    Type Name Description
    string FilePath

    Path to store the files.

    View Source

    StartServer(string)

    Register the Opp Server with the Opp service.

    Declaration
    public static BluetoothOppServer StartServer(string FilePath)
    Parameters
    Type Name Description
    string FilePath

    Path to store the files.

    Returns
    Type Description
    BluetoothOppServer

    The BluetoothOppServer instance.

    Remarks

    The device must be bonded with remote device by CreateBond(). If connection request is received from OPP Client, ConnectionRequested event will be invoked.

    View Source

    StopServer()

    Stops the Opp Server.

    Declaration
    public void StopServer()

    Events

    View Source

    ConnectionRequested

    (event) ConnectionRequested is called when OPP client requests for connection.

    Declaration
    public event EventHandler<ConnectionRequestedEventArgs> ConnectionRequested
    Event Type
    Type Description
    EventHandler<><ConnectionRequestedEventArgs>
    View Source

    TransferFinished

    (event) TransferFinished is called when the file tranfser is completed.

    Declaration
    public event EventHandler<TransferFinishedEventArgs> TransferFinished
    Event Type
    Type Description
    EventHandler<><TransferFinishedEventArgs>
    View Source

    TransferProgress

    (event) TransferProgress is called when the file transfer state is changed.

    Declaration
    public event EventHandler<TransferProgressEventArgs> TransferProgress
    Event Type
    Type Description
    EventHandler<><TransferProgressEventArgs>

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX