startPermissionFlow

fun startPermissionFlow(enableBluetoothPermission: Boolean, autoRequestLocationPermissions: Boolean, callback: Consumer<Any>)

The Permission flow is defined as follows:-

  1. Check for first Location permission if not granted ask for it.

  2. If Location permission granted, check for Notification permission if not granted ask for it.

  3. If Notification permission granted, check for Bluetooth permission if not granted ask for it. Each permission will be asked independently. After first permission is granted/rejected then only next permission will be asked.