Share via


BluetoothServerSocket.Close Method

Definition

Immediately close this socket, and release all associated resources.

[Android.Runtime.Register("close", "()V", "")]
public void Close ();
[<Android.Runtime.Register("close", "()V", "")>]
abstract member Close : unit -> unit
override this.Close : unit -> unit

Implements

Attributes

Exceptions

Remarks

Immediately close this socket, and release all associated resources.

Causes blocked calls on this socket in other threads to immediately throw an IOException.

Closing the BluetoothServerSocket will <em>not</em> close any BluetoothSocket received from #accept().

Java documentation for android.bluetooth.BluetoothServerSocket.close().

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