Api19

constructor(deviceName: String = DEFAULT_NAME, isBluetoothSupported: Boolean = true, isBluetoothEnabled: Boolean = true, isBluetoothPrivilegedPermissionGranted: Boolean = false, issueOnlyOneActiveScan: Boolean = false)

Parameters

deviceName

The device name, by default set to "Mock".

isBluetoothSupported

Whether Bluetooth is supported on the device.

isBluetoothEnabled

Whether Bluetooth is enabled on the device.

isBluetoothPrivilegedPermissionGranted

Whether the Bluetooth privileged permission is granted. This permission can only be granted in own AOSP builds, not for 3rd party apps.

issueOnlyOneActiveScan

Some early Android devices were sending only one Scan Request message for a single device per scan. Non-connectable devices were reported continuously, but connectable devices were reported only once. The client had to stop and start scanning again to receive further advertisements. This flag simulates this issue. It was encountered e.g. on Nexus 4.