Class BluetoothOppClient

    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 BluetoothOppClient : BluetoothProfile
    Inheritance
    object
    BluetoothProfile
    BluetoothOppClient

    Methods

    View Source

    AddFile(string)

    Add File path to be pushed.

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

    file for sending.

    Exceptions
    Type Condition
    System.NotSupportedException

    Thrown when the required feature is not Supported.

    System.NotSupportedException

    Thrown when the BT/BTLE is not Supported.

    System.InvalidOperationException

    Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors.

    View Source

    CancelPush()

    Cancels the ongoing push session.

    Declaration
    public void CancelPush()
    Exceptions
    Type Condition
    System.NotSupportedException

    Thrown when the required feature is not Supported.

    System.NotSupportedException

    Thrown when the BT/BTLE is not Supported.

    System.InvalidOperationException

    Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors.

    View Source

    ClearFiles()

    Clears all the File paths.

    Declaration
    public void ClearFiles()
    Exceptions
    Type Condition
    System.NotSupportedException

    Thrown when the required feature is not Supported.

    System.NotSupportedException

    Thrown when the BT/BTLE is not Supported.

    System.InvalidOperationException

    Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors.

    View Source

    PushFile(string)

    Pushes the file set through AddFile.

    Declaration
    public void PushFile(string Destination)
    Parameters
    Type Name Description
    string Destination

    destination device address.

    Exceptions
    Type Condition
    System.NotSupportedException

    Thrown when the required feature is not Supported.

    System.NotSupportedException

    Thrown when the BT/BTLE is not Supported.

    System.InvalidOperationException

    Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors.

    Events

    View Source

    PushFinished

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

    Declaration
    public event EventHandler<PushFinishedEventArgs> PushFinished
    Event Type
    Type Description
    System.EventHandler<TEventArgs><PushFinishedEventArgs>
    View Source

    PushProgress

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

    Declaration
    public event EventHandler<PushProgressEventArgs> PushProgress
    Event Type
    Type Description
    System.EventHandler<TEventArgs><PushProgressEventArgs>
    View Source

    PushResponded

    (event) PushResponded is called when remote OPP Server responds to a File push request.

    Declaration
    public event EventHandler<PushRespondedEventArgs> PushResponded
    Event Type
    Type Description
    System.EventHandler<TEventArgs><PushRespondedEventArgs>
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX