Package-level declarations

Types that can be user for Previews in Android Jetpack Compose whenever a Peripheral instance is required.

Types

Link copied to clipboard
open class PreviewPeripheral(scope: CoroutineScope, address: String = "00:11:22:33:44:55", name: String? = "My Device", type: PeripheralType = PeripheralType.LE, rssi: Int = -40, phy: PhyInUse = PhyInUse.PHY_LE_1M, state: ConnectionState = ConnectionState.Closed, services: ServerScope.() -> Unit = { Service(Service.GENERIC_ACCESS_UUID) { Characteristic( uuid = Characteristic.DEVICE_NAME, property = CharacteristicProperty.READ, permission = Permission.READ, ) Characteristic( uuid = Characteristic.APPEARANCE, property = CharacteristicProperty.READ, permission = Permission.READ, ) Characteristic( uuid = Characteristic.PERIPHERAL_PREFERRED_CONNECTION_PARAMETERS, property = CharacteristicProperty.READ, permission = Permission.READ, ) } Service(Service.GENERIC_ATTRIBUTE_UUID) { Characteristic( uuid = Characteristic.SERVICE_CHANGED, property = CharacteristicProperty.INDICATE, permission = Permission.READ, ) } }, hasBondInformation: Boolean = false) : Peripheral

A preview implementation of Peripheral for Android.

Link copied to clipboard

A remote characteristic that can be used for compose previews.

Link copied to clipboard

A remote descriptor that can be used for compose previews.

Link copied to clipboard

A remote service that can be used for compose previews.