BluetoothDevice.CreateInsecureRfcommSocketToServiceRecord(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 an RFCOMM BluetoothSocket
socket ready to start an insecure
outgoing connection to this remote device using SDP lookup of uuid.
[Android.Runtime.Register("createInsecureRfcommSocketToServiceRecord", "(Ljava/util/UUID;)Landroid/bluetooth/BluetoothSocket;", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public Android.Bluetooth.BluetoothSocket? CreateInsecureRfcommSocketToServiceRecord (Java.Util.UUID? uuid);
[<Android.Runtime.Register("createInsecureRfcommSocketToServiceRecord", "(Ljava/util/UUID;)Landroid/bluetooth/BluetoothSocket;", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.CreateInsecureRfcommSocketToServiceRecord : Java.Util.UUID -> Android.Bluetooth.BluetoothSocket
Parameters
- uuid
- UUID
service record uuid to lookup RFCOMM channel
Returns
a RFCOMM BluetoothServerSocket ready for an outgoing connection
- Attributes
Exceptions
on error, for example Bluetooth not available, or insufficient permissions
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.