requestPermissions

Simply call this method to request all defined permissions (by default, the permissions defined are those for the mSDK)

Return

true if all defined permissions are already granted, false otherwise

Parameters

activity

: the activity used for the permissions request


Simply call this method to request all defined permissions (by default, the permissions defined are those for the mSDK)

Parameters

activity

: the activity used for the permissions request

launcher

: the activity result launcher from the new Activity Result API that will handle permissions request's result


fun requestPermissions(activity: Activity, permissionsToRequest: LinkedHashMap<String, Boolean>): Boolean

Simply call this method to request the permissions passed to the method

Return

true if all defined permissions are already granted, false otherwise

Parameters

activity

: the activity used for the permissions request

permissionsToRequest

: the permissions are defined by a Pair of String for the permission name and a Boolean for indicates whereas the permission is required or not. Use a LinkedHashMap that contains Pair elements.