Skip to content
New issue

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

Builder has private access #68

Closed
eliasbagley opened this issue Apr 14, 2017 · 4 comments
Closed

Builder has private access #68

eliasbagley opened this issue Apr 14, 2017 · 4 comments

Comments

@eliasbagley
Copy link

Hey, I'm trying to change the file provider name, and the docs say to use RxPaparazzo.Builder.setFileProviderAuthority(String authority), which has private access in the RxPaparazzo class. How can I do this?

@miguelbcr
Copy link
Owner

Hi @eliasbagley ,
it's public, you can see in RxPaparazzo class .

Builder was refering to single() or multiple(). Here you have an example:

RxPaparazzo.single(fragment)
.setFileProviderAuthority("myAuthority")
.setFileProviderPath("myPath")
.size(new ScreenSize())
.usingCamera()
.subscribe(response -> {
   // Do your stuff
})

@eliasbagley
Copy link
Author

Ah I see, I didn't realize it was something you needed to set each time. I was expecting there to be some sort of builder for RxPaparazzo.register(). It would be nice to have the ability to set a default file provider path other than "RxPaparazzo"

@miguelbcr
Copy link
Owner

Yes, you are right, it suits better within the register() builder since it will be set only once.
I'll try to change it for the next release.
Thanks!

@miguelbcr
Copy link
Owner

Hi @eliasbagley !
sorry for the late.
I've released version 0.5.3-2.x
Let me know if it works for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants