app / sg.edu.ntu.scse.cz2006.gymbuddies.ui.home / HomeFragment / hasGps

hasGps

private open fun hasGps(startCheck: Boolean): Boolean

Internal function to start the check for if the app has the ACCESS_FINE_LOCATION permission granted

Parameters

startCheck - Boolean: If it is the first time the permission is being asked. This is just used to enable location on the map and zoom the user to the location

Return
Boolean: true if permission granted, false otherwise