Sdílet prostřednictvím


BluetoothAdapter.ListenUsingL2capChannel Method

Definition

Create a secure L2CAP Connection-oriented Channel (CoC) BluetoothServerSocket and assign a dynamic protocol/service multiplexer (PSM) value.

[Android.Runtime.Register("listenUsingL2capChannel", "()Landroid/bluetooth/BluetoothServerSocket;", "", ApiSince=29)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public Android.Bluetooth.BluetoothServerSocket ListenUsingL2capChannel ();
[<Android.Runtime.Register("listenUsingL2capChannel", "()Landroid/bluetooth/BluetoothServerSocket;", "", ApiSince=29)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.ListenUsingL2capChannel : unit -> Android.Bluetooth.BluetoothServerSocket

Returns

an L2CAP CoC BluetoothServerSocket

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothAdapter.listenUsingL2capChannel().

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