checkPermissions

open fun checkPermissions(@NonNull context: Context, @NonNull permissions: List<String>): Boolean

Determine whether you have been granted a particular permission.

Since

Added 1.4.0.

Return

Over OS 6.0(API 23, M), true if all of the permission are granted, false otherwise Under OS 6.0, true will be returned always.

Parameters

context

Main activity.

permissions

The name of the permission being checked.