GattServerConnectFlow


public interface GattServerConnectFlow extends Flow


A flow of GattServerConnectRequest returned by calling BluetoothLe.openGattServer.

Summary

Public methods

abstract void

Updates the services provided by the opened GATT server.

Inherited methods

From kotlinx.coroutines.flow.Flow
abstract void

Public methods

updateServices

Added in 1.0.0-alpha02
abstract void updateServices(@NonNull List<@NonNull GattService> services)

Updates the services provided by the opened GATT server.

Parameters
@NonNull List<@NonNull GattService> services

a new list of services that should be provided

Throws
kotlin.IllegalStateException

if it's called before the server is opened.