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.
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 |
---|---|
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. |
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. |
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. |
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 SourcePushFinished
(event) PushFinished is called when the file tranfser is completed.
Declaration
public event EventHandler<PushFinishedEventArgs> PushFinished
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><PushFinishedEventArgs> |
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> |
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> |