Creates a listener for incoming L2CAP channel connections.
- iOS 11.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 11.0+
- watchOS 4.0+
- Core Bluetooth
trueif the service requires link encryption before a stream can be established.
falseif the service supports use over an unsecured link.
The system determines an unused Protocol and Service Multiplexer (PSM) at the time of publishing, and provides it to your app with
peripheral. L2CAP channels aren’t discoverable by themselves, so it’s the app’s responsibility to handle PSM discovery on the client.