permissions.dispatcher.processor.impl.java.SensitivePermissionInterface.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.impl.java
import com.squareup.javapoet.MethodSpec
interface SensitivePermissionInterface {
fun addHasSelfPermissionsCondition(builder: MethodSpec.Builder, activityVar: String, permissionField: String)
fun addRequestPermissionsStatement(builder: MethodSpec.Builder, targetParam: String, activityVar: String, requestCodeField: String)
}