SamsungA8

constructor(deviceName: String = "Samsung A8", isBluetoothEnabled: Boolean = true, isBluetoothScanPermissionGranted: Boolean = true, isBluetoothConnectPermissionGranted: Boolean = true, isBluetoothAdvertisePermissionGranted: Boolean = true, isNeverForLocationFlagSet: Boolean = true, isLocationPermissionGranted: Boolean = true, isLocationEnabled: Boolean = true, advertiser: MockAdvertiser = DEFAULT_MOCK_ADVERTISER, scanner: MockScanner = DEFAULT_MOCK_SCANNER)

Parameters

deviceName

The device name, by default set to "Samsung A8".

isBluetoothEnabled

Whether Bluetooth is enabled on the device.

isBluetoothScanPermissionGranted

Whether the BLUETOOTH_SCAN permission is granted.

isBluetoothConnectPermissionGranted

Whether the BLUETOOTH_CONNECT permission is granted.

isBluetoothAdvertisePermissionGranted

Whether the BLUETOOTH_ADVERTISE permission is granted.

isNeverForLocationFlagSet

Whether the app is not using results of Bluetooth LE scanning to estimate device location. By default, neverForLocation flag is assumed.

isLocationPermissionGranted

Whether the fine location permission is initially granted.

isLocationEnabled

Whether location service 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.