MockAdvertisementConfig

class MockAdvertisementConfig(val delay: Duration, val timeout: Duration, val maxAdvertisingEvents: Int, val isAdvertisingWhenConnected: Boolean, val parameters: AdvertisingSetParameters, val advertisingData: AdvertisingDataDefinition, val isBeacon: Boolean)

The advertisement configuration for a mock peripheral.

Constructors

Link copied to clipboard
constructor(delay: Duration, timeout: Duration, maxAdvertisingEvents: Int, isAdvertisingWhenConnected: Boolean, parameters: AdvertisingSetParameters, advertisingData: AdvertisingDataDefinition, isBeacon: Boolean)

Properties

Link copied to clipboard

The advertising data.

Link copied to clipboard

The delay before the peripheral starts advertising.

Link copied to clipboard

Whether the peripheral should advertise in the connected state.

Link copied to clipboard

Whether the advertisement can reveal user's location, therefore requires Location permission granted.

Link copied to clipboard

The maximum number of advertising events.

Link copied to clipboard

The advertising parameters.

Link copied to clipboard

The timeout after which the advertising set stops advertising.