is Camera Permission Granted
This method is used to check if the camera permission is granted.
Return
Boolean - true if the camera permission is granted, false otherwise
Parameters
activity
The activity to show the snackbar in