Class BluetoothOppClient

Definition

Namespace:
Tizen.Network.Bluetooth
Assembly:
Tizen.Network.Bluetooth.dll
API Level:
4
Privilege Level:
public
Privilege:
http://tizen.org/privilege/bluetooth

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

C#
Copy
public class BluetoothOppClient : BluetoothProfile
Inheritance
System.Object
BluetoothOppClient

Methods

View Source

AddFile(String)

Add File path to be pushed.

Declaration
C#
Copy
public void AddFile(string FilePath)
Parameters
Type Name Description
System.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.

API Level: 4
Feature: http://tizen.org/feature/network.bluetooth.opp
View Source

CancelPush()

Cancels the ongoing push session.

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

API Level: 4
Feature: http://tizen.org/feature/network.bluetooth.opp
View Source

ClearFiles()

Clears all the File paths.

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

API Level: 4
Feature: http://tizen.org/feature/network.bluetooth.opp
View Source

PushFile(String)

Pushes the file set through AddFile.

Declaration
C#
Copy
public void PushFile(string Destination)
Parameters
Type Name Description
System.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.

API Level: 4
Feature: http://tizen.org/feature/network.bluetooth.opp

Events

View Source

PushFinished

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

Declaration
C#
Copy
public event EventHandler<PushFinishedEventArgs> PushFinished
Event Type
Type Description
System.EventHandler<PushFinishedEventArgs>
API Level: 4
View Source

PushProgress

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

Declaration
C#
Copy
public event EventHandler<PushProgressEventArgs> PushProgress
Event Type
Type Description
System.EventHandler<PushProgressEventArgs>
API Level: 4
View Source

PushResponded

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

Declaration
C#
Copy
public event EventHandler<PushRespondedEventArgs> PushResponded
Event Type
Type Description
System.EventHandler<PushRespondedEventArgs>
API Level: 4