We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi may i get example how to handle multiple permissions with moko? do i need create multiple controller for that too?
The text was updated successfully, but these errors were encountered:
just call providePermission multiple times
class ViewModel(val permissionsController: PermissionsController): ViewModel() { fun onPhotoPressed() { viewModelScope.launch { try { permissionsController.providePermission(Permission.GALLERY) permissionsController.providePermission(Permission.CAMERA) // Permission has been granted successfully. } catch(deniedAlways: DeniedAlwaysException) { // Permission is always denied. } catch(denied: DeniedException) { // Permission was denied. } } } }
Sorry, something went wrong.
@Alex009 Is the same applies if its for location permission?
Yes
No branches or pull requests
Hi may i get example how to handle multiple permissions with moko? do i need create multiple controller for that too?
The text was updated successfully, but these errors were encountered: