Compat Permission Request Builder
Implementation of BasePermissionRequestBuilder that creates a different request depending on the device's API version.
Since Android M, this builder creates a RuntimePermissionRequest that uses the RuntimePermissionHandler provided by this builder. Below Android M, this builder creates a ManifestPermissionRequest.
Functions
build
Link copied to clipboard
Build the PermissionRequest with all the configurations set. It will also assigns the default values and throw some exceptions if the configuration of this builder isn't a valid one.
permissions
Link copied to clipboard
open override fun permissions(firstPermission: String, vararg otherPermissions: String): PermissionRequestBuilder
Content copied to clipboard
Sets the permissions that must be requested.
runtime Handler Provider
Link copied to clipboard
open override fun runtimeHandlerProvider(runtimeHandlerProvider: RuntimePermissionHandlerProvider): PermissionRequestBuilder
Content copied to clipboard
Sets the RuntimePermissionHandlerProvider used to provide a RuntimePermissionHandler.