Language

BluetoothServerSocket.AcceptAsync Method

Definition

Overloads

Name Description
AcceptAsync()

Waits asynchronously for an incoming Bluetooth connection.

AcceptAsync(Int32)

Waits asynchronously for an incoming Bluetooth connection.

AcceptAsync()

Waits asynchronously for an incoming Bluetooth connection.

public System.Threading.Tasks.Task<Android.Bluetooth.BluetoothSocket?> AcceptAsync();
member this.AcceptAsync : unit -> System.Threading.Tasks.Task<Android.Bluetooth.BluetoothSocket>

Returns

A task whose result is the connected socket accepted by this server.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

AcceptAsync(Int32)

Waits asynchronously for an incoming Bluetooth connection.

public System.Threading.Tasks.Task<Android.Bluetooth.BluetoothSocket?> AcceptAsync(int timeout);
member this.AcceptAsync : int -> System.Threading.Tasks.Task<Android.Bluetooth.BluetoothSocket>

Parameters

timeout
Int32

The maximum wait time, in milliseconds.

Returns

A task whose result is the connected socket accepted by this server.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to