Interface IBluetoothServerSocket
Definition
- Namespace:
- Tizen.Network.Bluetooth
- Assembly:
- Tizen.Network.Bluetooth.dll
- API Level:
- 3
The IBluetoothServerSocket interface handles the server socket operations.
public interface IBluetoothServerSocket
Methods
View SourceSendData(Byte[])
Method to send data over bluetooth socket
Declaration
int SendData(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
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
View SourceSendData(String)
Deprecated since API level 7. Please use SendData(byte[] data) method.
Method to send data over bluetooth socket
Declaration
[Obsolete("Deprecated since API level 7. Please use SendData(byte[] data) method.")]
int SendData(string data)
Parameters
Type | Name | Description |
---|---|---|
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 SourceConnectionStateChanged
Event handler method to receive bluetooth socket connection state changed events. This event occurs when the connection state between two devices is changed.
Declaration
event EventHandler<SocketConnectionStateChangedEventArgs> ConnectionStateChanged
Event Type
Type | Description |
---|---|
EventHandler<SocketConnectionStateChangedEventArgs> |
API Level: 3
View SourceDataReceived
Event handler to receive data over bluetooth socket. This event occurs when the socket server receives data from the client.
Declaration
event EventHandler<SocketDataReceivedEventArgs> DataReceived
Event Type
Type | Description |
---|---|
EventHandler<SocketDataReceivedEventArgs> |