Last active
April 14, 2016 12:33
-
-
Save pocmo/58bc91744c7454e8379ce980a78e7c01 to your computer and use it in GitHub Desktop.
Firefox for Android - Permissions Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Permissions | |
.from(context) | |
.withPermissions(Manifest.permission.ACCESS_FINE_LOCATION) | |
.onUIThread() | |
.andFallback(() -> doSomethingIfPermissionsHasNotBeenGranted()) | |
.run(() -> doSomethingWithPermission()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment