Class BluetoothOppServer
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#Copypublic class BluetoothOppServer : object
- Inheritance
-
BluetoothOppServer
Constructors
Declaration
C#Copypublic BluetoothOppServer()
API Level: 4
Methods
Declaration
C#Copypublic int AcceptPush(string FileName)
Parameters
Type | Name | Description |
---|---|---|
String | FileName | File name to accept. |
Returns
Type | Description |
---|---|
Int32 | The id of transfer. |
API Level: 4
Feature: http://tizen.org/feature/network.bluetooth.opp
Declaration
C#Copypublic void CancelTransfer(int TransferId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | TransferId | tranfer ID. |
API Level: 4
Feature: http://tizen.org/feature/network.bluetooth.opp
Declaration
C#Copypublic void RejectPush()
API Level: 4
Feature: http://tizen.org/feature/network.bluetooth.opp
Declaration
C#Copypublic void SetDestinationPath(string FilePath)
Parameters
Type | Name | Description |
---|---|---|
String | FilePath | Path to store the files. |
API Level: 4
Feature: http://tizen.org/feature/network.bluetooth.opp
Declaration
C#Copypublic static BluetoothOppServer StartServer(string FilePath)
Parameters
Type | Name | Description |
---|---|---|
String | FilePath | Path to store the files. |
Returns
Type | Description |
---|---|
BluetoothOppServer | The BluetoothOppServer instance. |
Remarks
The device must be bonded with remote device by CreateBond(). If connection request is received from OPP Client, ConnectionRequested event will be invoked.
API Level: 4
Feature: http://tizen.org/feature/network.bluetooth.opp
Declaration
C#Copypublic void StopServer()
API Level: 4
Feature: http://tizen.org/feature/network.bluetooth.opp
Events
View Source
ConnectionRequested
(event) ConnectionRequested is called when OPP client requests for connection.
Declaration
C#Copypublic event EventHandler<ConnectionRequestedEventArgs> ConnectionRequested
Event Type
Type | Description |
---|---|
EventHandler<ConnectionRequestedEventArgs> |
API Level: 4
View Source
TransferFinished
(event) TransferFinished is called when the file tranfser is completed.
Declaration
C#Copypublic event EventHandler<TransferFinishedEventArgs> TransferFinished
Event Type
Type | Description |
---|---|
EventHandler<TransferFinishedEventArgs> |
API Level: 4
View Source
TransferProgress
(event) TransferProgress is called when the file transfer state is changed.
Declaration
C#Copypublic event EventHandler<TransferProgressEventArgs> TransferProgress
Event Type
Type | Description |
---|---|
EventHandler<TransferProgressEventArgs> |