Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Easy Permissions Example 1 Kotlin
class ExampleService : Service(), IPermissionsListener {
override fun onCreate() {
super.onCreate()
// Will request all permissions from the Manifest automatically.
EasyPermissions.getInstance().requestPermissions(this)
}
override fun onCompleted(grantedPermissions: Set<String>, deniedPermissions: Set<String>) {}
override fun onFailure(throwable: Throwable) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.