PermissionRequestBuilder

interface PermissionRequestBuilder

Builder used to create a PermissionRequest.

This builder allows also to customize a PermissionRequest before it is sent. It's recommended to avoid to hold the reference to a PermissionRequestBuilder to create PermissionRequests with different configurations because the values assigned from the previous configurations could override the default values. The correct behavior is to use the same instance of a PermissionRequestBuilder only for the same set of configurations.

Functions

build
Link copied to clipboard
abstract fun build(): PermissionRequest

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
abstract fun permissions(firstPermission: String, vararg otherPermissions: String): PermissionRequestBuilder

Sets the permissions that must be requested.

runtimeHandlerProvider
Link copied to clipboard
abstract fun runtimeHandlerProvider(runtimeHandlerProvider: RuntimePermissionHandlerProvider): PermissionRequestBuilder

Inheritors

BasePermissionRequestBuilder
Link copied to clipboard