MacosBackend

class MacosBackend : BleBackend

macOS (Apple silicon) CoreBluetooth backend, registered through META-INF/services so the portable JVM factories use it automatically on macOS arm64.

CoreBluetooth starts on first use, not at construction. A packaged .app must declare NSBluetoothAlwaysUsageDescription in its Info.plist; without it the backend refuses to start CoreBluetooth (macOS would terminate the process) and reports Macos.ERROR_USAGE_DESCRIPTION_MISSING.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val id: String
Link copied to clipboard
open val priority: Int

Functions

Link copied to clipboard
open override fun checkPermissions(): PermissionResult
Link copied to clipboard
open override fun createAdapterTransport(): AdapterTransport
Link copied to clipboard
open override fun createAdvertiserTransport(): AdvertiserTransport
Link copied to clipboard
open override fun createGattServerTransport(): GattServerTransport
Link copied to clipboard
open override fun createL2capListenerTransport(): L2capListenerTransport
Link copied to clipboard
open override fun createPeripheralTransport(identifier: Identifier, handle: String?): PeripheralTransport
Link copied to clipboard
open override fun createScanTransport(): ScanTransport
Link copied to clipboard
open override fun isSupported(): Boolean