BluetoothAdapter.ListenUsingRfcommWithServiceRecord(String, UUID) Method

Definition

Create a listening, secure RFCOMM Bluetooth socket with Service Record.

[Android.Runtime.Register("listenUsingRfcommWithServiceRecord", "(Ljava/lang/String;Ljava/util/UUID;)Landroid/bluetooth/BluetoothServerSocket;", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public Android.Bluetooth.BluetoothServerSocket? ListenUsingRfcommWithServiceRecord (string? name, Java.Util.UUID? uuid);
[<Android.Runtime.Register("listenUsingRfcommWithServiceRecord", "(Ljava/lang/String;Ljava/util/UUID;)Landroid/bluetooth/BluetoothServerSocket;", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.ListenUsingRfcommWithServiceRecord : string * Java.Util.UUID -> Android.Bluetooth.BluetoothServerSocket

Parameters

name
String

service name for SDP record

uuid
UUID

uuid for SDP record

Returns

a listening RFCOMM BluetoothServerSocket

Attributes

Exceptions

on error, for example Bluetooth not available, or insufficient permissions, or channel in use.

Remarks

Java documentation for android.bluetooth.BluetoothAdapter.listenUsingRfcommWithServiceRecord(java.lang.String, java.util.UUID).

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