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

Extend API with callback to signal events #4

Merged
merged 2 commits into from
Dec 17, 2019

Conversation

bearlysophisticated
Copy link

Issue: The caller of the DokiContentView API is not aware of any error while loading content.
Resolution: DokiContentView::loadContent() can receive a callback object (DokiContentCallback) to which DokiApiCallback events are translated. This allows the caller to be notified about events regarding content loading. In the future the library should use these events to handle errors and display them on the UI in DokiActivity.

 * DokiContentView::loadContent can be provided with a callback
   to handle start, load and failure events
 * DokiApi no longer exposed
 * DokiApi expects callback in getManufacturer method, making it stateless
 * Made some properties internal or private to lock unintended use
 * Updated dependencies
 * Also added missing styles to be overridden
@fennifith
Copy link
Contributor

Thank you for contributing! It's a little difficult to tell what's been changed in the diff with all the formatting changes & stuff mixed in there, but I'll merge it into another branch for now and take the time to review it a little more thoroughly before the next release (hopefully adding a couple more things in the process).

Anyone should be able to depend on dev.doubledot.doki:library:develop-SNAPSHOT@aar to try out this version before then :)

@fennifith fennifith changed the base branch from master to develop December 17, 2019 22:30
@fennifith fennifith merged commit cc0ef01 into doubledotlabs:develop Dec 17, 2019
@fennifith fennifith mentioned this pull request Dec 17, 2019
@bearlysophisticated
Copy link
Author

Thank you for the quick merge! When do you plan the next release?

@fennifith
Copy link
Contributor

@bearlysophisticated No idea! I'm hoping to have some time to work on this before next year, clean up my previous work a bit, add better documentation, and fix a couple problems from user feedback. I was hoping to get #3 in the next version too, but I'm not sure if that'll be possible.

Err, that's not a very clear estimate is it. Let's say... next few weeks. lol

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

Successfully merging this pull request may close these issues.

2 participants