Interface IBluetoothServerSocket
Definition
- Namespace:
- Tizen.Network.Bluetooth
- Assembly:
- Tizen.Network.Bluetooth.dll
- API Level:
- 3
The IBluetoothServerSocket interface handles the server socket operations.
C#Copypublic interface IBluetoothServerSocket
Methods
Declaration
C#Copyint SendData(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | The data to be sent. |
Returns
Type | Description |
---|---|
Int32 | The number of bytes written (zero indicates nothing was written). |
Remarks
The connection must be established.
API Level: 7
Declaration
C#Copy[Obsolete("Deprecated since API level 7. Please use SendData(byte[] data) method.")] int SendData(string data)
Parameters
Type | Name | Description |
---|---|---|
System.String | data | The data to be sent. |
Returns
Type | Description |
---|---|
Int32 | The number of bytes written (zero indicates nothing was written). |
Remarks
The connection must be established.
API Level: 3
Events
View Source
ConnectionStateChanged
Event handler method to receive bluetooth socket connection state changed events. This event occurs when the connection state between two devices is changed.
Declaration
C#Copyevent EventHandler<SocketConnectionStateChangedEventArgs> ConnectionStateChanged
Event Type
Type | Description |
---|---|
System.EventHandler<SocketConnectionStateChangedEventArgs> |
API Level: 3
View Source
DataReceived
Event handler to receive data over bluetooth socket. This event occurs when the socket server receives data from the client.
Declaration
C#Copyevent EventHandler<SocketDataReceivedEventArgs> DataReceived
Event Type
Type | Description |
---|---|
System.EventHandler<SocketDataReceivedEventArgs> |