isPermissionDeclared

Returns if we need to check for the given permission or not.

Return

If the given permission is declared in the manifest or not.

Parameters

permission

The permission to check.