zxingscanview/src/main/java/com/google/zxing/client/android/compat/Compat.java
/**
     * Determine whether <em>you</em> have been granted a particular permission.
     *
     * @param permission The name of the permission being checked.
     * @return {@link android.content.pm.PackageManager#PERMISSION_GRANTED} if you have the
     * permission, or {@link android.content.pm.PackageManager#PERMISSION_DENIED} if not.
     * @see android.content.pm.PackageManager#checkPermission(String, String)
     */
Determine whether you have been granted a particular permission.
@param permission The name of the permission being checked.
Determine whether you have been granted a particular permission . @param permission The name of the permission being checked .
public static int checkSelfPermission(Context context, String permission) {
        if (permission == null) {
            throw new IllegalArgumentException("permission is null");
        }
        return IMPL.checkSelfPermission(context, permission);
    }
public static int checkSelfPermission ( Context context , String permission ) { if ( permission == null ) { throw new IllegalArgumentException ( "permission is null" ) ; } return IMPL . checkSelfPermission ( context , permission ) ; }
Determine whether <em>you</em> have been granted a particular permission.
Determine whether <em > you< / em > have been granted a particular permission .