Class BluetoothOppClient
Definition
- Assembly:
- Tizen.Network.Bluetooth.dll
A class which is used to handle the connection and send and receive the object over Opp profile.
C#Copypublic class BluetoothOppClient : BluetoothProfile
- Inheritance
Methods
Declaration
C#Copypublic 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. |
Declaration
C#Copypublic 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. |
Declaration
C#Copypublic 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. |
Declaration
C#Copypublic 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
Declaration
C#Copypublic event EventHandler<PushFinishedEventArgs> PushFinished
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><PushFinishedEventArgs> |
Declaration
C#Copypublic event EventHandler<PushProgressEventArgs> PushProgress
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><PushProgressEventArgs> |
PushResponded
(event) PushResponded is called when remote OPP Server responds to a File push request.
Declaration
C#Copypublic event EventHandler<PushRespondedEventArgs> PushResponded
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><PushRespondedEventArgs> |