-
public class PermissionsClass holding sets of common permissions for different SDK features.
-
-
Field Summary
Fields Modifier and Type Field Description public final static PermissionsINSTANCE
-
Method Summary
Modifier and Type Method Description final Array<String>visualMediaPermissions()Builds an Array of the required permissions for accessing visual media, based on the Android version. final Array<String>audioPermissions()Builds an Array of the required permissions for accessing audio media, based on the Android version. final Array<String>filesPermissions()Builds an Array of the required permissions for accessing visual + audio media, based on the Android version. final BooleanisPermanentlyDenied(Context context, Map<String, Boolean> grantResults)Checks if the grantResults indicate that the permissions were permanently denied. -
-
Method Detail
-
visualMediaPermissions
final Array<String> visualMediaPermissions()
Builds an Array of the required permissions for accessing visual media, based on the Android version.
-
audioPermissions
final Array<String> audioPermissions()
Builds an Array of the required permissions for accessing audio media, based on the Android version.
-
filesPermissions
final Array<String> filesPermissions()
Builds an Array of the required permissions for accessing visual + audio media, based on the Android version.
-
isPermanentlyDenied
final Boolean isPermanentlyDenied(Context context, Map<String, Boolean> grantResults)
Checks if the grantResults indicate that the permissions were permanently denied.
- Parameters:
context- The calling Context.grantResults- The results delivered by the callback of androidx.activity.result.contract.ActivityResultContracts.RequestMultiplePermissions.
-
-
-
-