Share via


BluetoothServerSocket.Psm Property

Definition

Returns the assigned dynamic protocol/service multiplexer (PSM) value for the listening L2CAP Connection-oriented Channel (CoC) server socket.

public int Psm { [Android.Runtime.Register("getPsm", "()I", "", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getPsm", "()I", "", ApiSince=29)>]
member this.Psm : int

Property Value

the assigned PSM or LE_PSM value depending on transport

Attributes

Remarks

Returns the assigned dynamic protocol/service multiplexer (PSM) value for the listening L2CAP Connection-oriented Channel (CoC) server socket. This server socket must be returned by the BluetoothAdapter#listenUsingL2capChannel() or BluetoothAdapter#listenUsingInsecureL2capChannel(). The returned value is undefined if this method is called on non-L2CAP server sockets.

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

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