permissions.dispatcher.processor.ProcessorUnit.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of permissionsdispatcher-processor Show documentation
Show all versions of permissionsdispatcher-processor Show documentation
A declarative API to handle Android runtime permissions.
package permissions.dispatcher.processor
import com.squareup.javapoet.JavaFile
import com.squareup.kotlinpoet.FileSpec
import javax.lang.model.type.TypeMirror
interface ProcessorUnit {
fun getTargetType(): TypeMirror
/**
* Creates the File for the provided @RuntimePermissions element.
*
* This will delegate to other methods that compose generated code.
*/
fun createFile(rpe: RuntimePermissionsElement, requestCodeProvider: RequestCodeProvider): K
}
interface JavaProcessorUnit : ProcessorUnit
interface KtProcessorUnit : ProcessorUnit