permissionsBuilder

fun FragmentActivity.permissionsBuilder(firstPermission: String, vararg otherPermissions: String): PermissionRequestBuilder

Creates the default PermissionRequestBuilder using the context of the Activity. The builder will use the default configurations and will be provided with the set of otherPermissions attached to it.

Return

new instance of the default PermissionRequestBuilder.

Parameters

firstPermission

the first permission which should be requested.

otherPermissions

the other permissions that must be requested, if the request should handle more than one permission.


fun Fragment.permissionsBuilder(firstPermission: String, vararg otherPermissions: String): PermissionRequestBuilder

Creates the default PermissionRequestBuilder using the context of the Activity at which this Fragment is attached. The builder will use the default configurations and will be provided with the set of firstPermission plus otherPermissions attached to it.

Return

new instance of the default PermissionRequestBuilder.

Parameters

firstPermission

the first permission which should be requested.

otherPermissions

the other permissions that must be requested, if the request should handle more than one permission.

Throws

if the Fragment is not attached to an Activity.