Android.Bluetooth.BluetoothServerSocket.Accept Method
Block until a connection is established.

Syntax

[Android.Runtime.Register("accept", "()Landroid/bluetooth/BluetoothSocket;", "")]
public BluetoothSocket Accept ()

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOExceptionon error, for example this call was aborted, or timeout

Remarks

Block until a connection is established.

Returns a connected Android.Bluetooth.BluetoothSocket on successful connection.

Once this call returns, it can be called again to accept subsequent incoming connections.

BluetoothServerSocket.Close can be used to abort this call from another thread.

[Android Documentation]

Requirements

Namespace: Android.Bluetooth
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5