Api21
Parameters
The device name, by default set to "Mock".
Whether Bluetooth is supported on the device.
Whether Bluetooth is enabled on the device.
Whether multi advertisement is supported by the chipset.
A callback that will be called when the app requests to advertise. The callback should return TX power level used for mock advertising.
A callback that will be called when the mock central manager requests to scan for devices. It returns whether the scan was successful, secretly failed, or returned an error.
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.