# checkForPermissions

fun checkForPermissions(activity: Activity, permissionType: String, permissionName: String, context: Context): Boolean
Content copied to clipboard

Check if permission is granted.

#### Return

True if permission is granted and false if not.

## Parameters

activity

Activity class for check state of permissions.

permissionType

Permission type, for example: SMS_READ, CAMERA, etc...

permissionName

Permission name, for example: sms, camera, phone state, etc...