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
Here is a code sample of what I am trying to do:
var shutterBuilder = Shutter.with(this) if (useCamera) shutterBuilder = shutterBuilder.takePhoto().usePrivateAppExternalStorage() else shutterBuilder = shutterBuilder.getPhotoFromGallery() shutterResult = shutterBuilder .snap(object : ShutterResultCallback {
I am trying to dynamically choose what builder I use. Depending on boolean variable useCamera.
useCamera
Problem is I cannot do this because the builder objects being returned from each are not common.
What I could do:
build()
snap()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Here is a code sample of what I am trying to do:
I am trying to dynamically choose what builder I use. Depending on boolean variable
useCamera
.Problem is I cannot do this because the builder objects being returned from each are not common.
What I could do:
build()
that builds to a common object that you can then callsnap()
on.The text was updated successfully, but these errors were encountered: