Environment

interface Environment

A base interface for local environment.

The environment is used to capabilities of the local device, native or mock.

Properties

Link copied to clipboard

Whether the device provides API to remove bond information from local host.

Link copied to clipboard

Whether the system requests the maximum MTU itself when the connection is established (e.g. iOS). If true, the library does not request the MTU before it reports the peripheral as connected.

Link copied to clipboard
abstract val deviceName: String

The name of the local device.

Link copied to clipboard

Whether Bluetooth is enabled.

Link copied to clipboard

Whether Bluetooth is supported.

Link copied to clipboard

Whether the device can scan for Bluetooth LE devices advertising on LE Coded PHY as Primary PHY.

Link copied to clipboard
abstract val isSystem: Boolean

Whether the app is running in a privileged environment and has access to restricted features.

Whether the system reports an error when asked to connect in the background (auto connect) to a device that is not bonded and uses a Resolvable Private Address. When false, the request is accepted, but the connection is never established.

Link copied to clipboard

Whether the system repeats a request to a protected attribute after it bonded with the peripheral, instead of failing it with Insufficient Authentication (when false, the client is expected to repeat the request).

Link copied to clipboard

Whether the device provides information whether a scanned Bluetooth LE advertising packet is connectable.

Link copied to clipboard

Whether the device reports connection parameters.