BluetoothAdapter.ListenUsingRfcommWithServiceRecord(String, UUID) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.