hasReadContactsPermission

Determines whether the app has been granted permission to read contacts.

On devices running Android M (API level 23) or higher, this method checks if the READ_CONTACTS permission has been granted. On older versions, the permission is automatically granted.

Return

true if the READ_CONTACTS permission is granted, or if the platform version is lower than API level 23.