permissions.dispatcher.processor.impl.kotlin.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.kotlin
import com.squareup.kotlinpoet.FunSpec
interface SensitivePermissionInterface {
fun addHasSelfPermissionsCondition(builder: FunSpec.Builder, activity: String, permissionField: String)
fun addRequestPermissionsStatement(builder: FunSpec.Builder, targetParam: String = "this", activityVar: String, requestCodeField: String)
}