on Request Permissions Result
fun onRequestPermissionsResult(requestCode: Int, permissions: Array<String>, grantResults: IntArray)
You should call this method from your activity onRequestPermissionsResult.
When requestLocationPermissionsFromManifest triggered a follow-up background location permission request, PermissionsListener.onPermissionResult is deferred until that follow-up request completes, and reflects whether background location permission was granted rather than foreground location permission.
Parameters
request Code
The request code passed in requestPermissions(android.app.Activity, String[], int)
permissions
The requested permissions. Never null.
grant Results
The grant results for the corresponding permissions which is either PERMISSION_GRANTED or PERMISSION_DENIED. Never null.