Last active
June 16, 2019 05:44
-
-
Save sagar-viradiya/9ffea9ba6b14aaafa5595318a08709a9 to your computer and use it in GitHub Desktop.
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
/** | |
* A static factory method to request permission from activity. | |
* | |
* @param activity an instance of [AppCompatActivity] | |
* @param requestId Request ID for permission request | |
* @param permissions Permission(s) to request | |
* | |
* @return [PermissionResult] | |
* | |
* Suspends the coroutines until result is available. | |
*/ | |
suspend fun requestPermissions( | |
activity: AppCompatActivity, | |
requestId: Int, | |
vararg permissions: String | |
): PermissionResult |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment