Last active
February 17, 2020 16:22
-
-
Save nhoxbypass/97472f3af7447a74fd3d4816e0730815 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class MyPresenter(val view: MyView, val buildProvider: BuildVersionProvider) : BasePresenter() { | |
override fun onCameraButtonClick() { | |
if (buildProvider.isMarshmallowAndAbove()) { | |
view.requestCameraPermission() | |
} else { | |
navigator.openCamera() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment