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.
public class BluetoothOppClient : BluetoothProfile
- Inheritance
Methods
View SourceAddFile(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 |
---|---|
NotSupportedException | Thrown when the required feature is not Supported. |
NotSupportedException | Thrown when the BT/BTLE is not Supported. |
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 SourceCancelPush()
Cancels the ongoing push session.
Declaration
public void CancelPush()
Exceptions
Type | Condition |
---|---|
NotSupportedException | Thrown when the required feature is not Supported. |
NotSupportedException | Thrown when the BT/BTLE is not Supported. |
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 SourceClearFiles()
Clears all the File paths.
Declaration
public void ClearFiles()
Exceptions
Type | Condition |
---|---|
NotSupportedException | Thrown when the required feature is not Supported. |
NotSupportedException | Thrown when the BT/BTLE is not Supported. |
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 SourcePushFile(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 |
---|---|
NotSupportedException | Thrown when the required feature is not Supported. |
NotSupportedException | Thrown when the BT/BTLE is not Supported. |
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 SourcePushFinished
(event) PushFinished is called when the file tranfser is completed.
Declaration
public event EventHandler<PushFinishedEventArgs> PushFinished
Event Type
Type | Description |
---|---|
EventHandler<PushFinishedEventArgs> |
API Level: 4
View SourcePushProgress
(event) PushProgress is called when the file transfer state is changed.
Declaration
public event EventHandler<PushProgressEventArgs> PushProgress
Event Type
Type | Description |
---|---|
EventHandler<PushProgressEventArgs> |
API Level: 4
View SourcePushResponded
(event) PushResponded is called when remote OPP Server responds to a File push request.
Declaration
public event EventHandler<PushRespondedEventArgs> PushResponded
Event Type
Type | Description |
---|---|
EventHandler<PushRespondedEventArgs> |