app / sg.edu.ntu.scse.cz2006.gymbuddies / MainActivity / onRequestPermissionsResult

onRequestPermissionsResult

open fun onRequestPermissionsResult(requestCode: Int, @NonNull permissions: Array<String!>, @NonNull grantResults: IntArray): Unit

Internal lifecycle function for if we are granted a permission We use this for the location permission

Parameters

requestCode - Int: The request code for the permission for reference

permissions - Array<String!>: The permissions being requested

grantResults - IntArray: The results of the permission request