Interface IBluetoothServerSocket

Definition

Namespace:
Tizen.Network.Bluetooth
Assembly:
Tizen.Network.Bluetooth.dll
API Level:
3

The IBluetoothServerSocket interface handles the server socket operations.

C#
Copy
public interface IBluetoothServerSocket

Methods

View Source

SendData(Byte[])

Method to send data over bluetooth socket

Declaration
C#
Copy
int 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
View Source

SendData(String)

Method to send data over bluetooth socket

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#
Copy
event 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#
Copy
event EventHandler<SocketDataReceivedEventArgs> DataReceived
Event Type
Type Description
System.EventHandler<SocketDataReceivedEventArgs>
API Level: 3