Nexus4

constructor(deviceName: String = "Nexus 4", isBluetoothEnabled: Boolean = true, advertiser: MockAdvertiser = DEFAULT_MOCK_ADVERTISER, scanner: MockScanner = DEFAULT_MOCK_SCANNER)

Parameters

deviceName

The device name, by default set to "Nexus 4".

isBluetoothEnabled

Whether Bluetooth is enabled on the device.

advertiser

A callback that will be called when the app requests to advertise. The callback should return TX power level used for mock advertising.

scanner

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.