createServer

actual open suspend override fun createServer(settingsBuilder: (Permissions) -> ServerSettings = { ServerSettings(permissions = it) }, coroutineContext: CoroutineContext = defaultBluetoothServerDispatcher, specs: BluetoothServerDSL.() -> Unit): BluetoothServer

Creates a BluetoothServer

Return

the created BluetoothServer

Parameters

settingsBuilder

a method for getting the ServerSettings to be used while scanning from a CoroutineContext

coroutineContext

the CoroutineContext in which Bluetooth runs

specs

the BluetoothServerDSL to build the BluetoothServer from

actual open suspend override fun createServer(settingsBuilder: (Permissions) -> ServerSettings = { ServerSettings(permissions = it) }, coroutineContext: CoroutineContext = defaultBluetoothServerDispatcher, specs: BluetoothServerDSL.() -> Unit): BluetoothServer

Creates a BluetoothServer

Return

the created BluetoothServer

Parameters

settingsBuilder

a method for getting the ServerSettings to be used while scanning from a CoroutineContext

coroutineContext

the CoroutineContext in which Bluetooth runs

specs

the BluetoothServerDSL to build the BluetoothServer from

expect open suspend override fun createServer(settingsBuilder: (Permissions) -> ServerSettings = { ServerSettings(permissions = it) }, coroutineContext: CoroutineContext = defaultBluetoothServerDispatcher, specs: BluetoothServerDSL.() -> Unit): BluetoothServer

Creates a BluetoothServer

Return

the created BluetoothServer

Parameters

settingsBuilder

a method for getting the ServerSettings to be used while scanning from a CoroutineContext

coroutineContext

the CoroutineContext in which Bluetooth runs

specs

the BluetoothServerDSL to build the BluetoothServer from