BasePermissionRequestBuilder

abstract class BasePermissionRequestBuilder : PermissionRequestBuilder

Base PermissionRequestBuilder that specifies the common configurations.

This builder specifies also the default configurations and throws the correct exceptions when the method build is invoked with an invalid configuration. When the method createRequest is called, the configuration can't change anymore, all the defaults are assigned and it can be considered valid.

Constructors

BasePermissionRequestBuilder
Link copied to clipboard
fun BasePermissionRequestBuilder()

Functions

build
Link copied to clipboard
open override 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
open override fun permissions(firstPermission: String, vararg otherPermissions: String): PermissionRequestBuilder

Sets the permissions that must be requested.

runtimeHandlerProvider
Link copied to clipboard
open override fun runtimeHandlerProvider(runtimeHandlerProvider: RuntimePermissionHandlerProvider): PermissionRequestBuilder

Sets the RuntimePermissionHandlerProvider used to provide a RuntimePermissionHandler.

Inheritors

CompatPermissionRequestBuilder
Link copied to clipboard