Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Async Based location plugin - Feature request #99

Open
thefex opened this issue Apr 25, 2016 · 5 comments
Open

Async Based location plugin - Feature request #99

thefex opened this issue Apr 25, 2016 · 5 comments

Comments

@thefex
Copy link

thefex commented Apr 25, 2016

Sometimes there is a need for Asynchronous Location based plugin. (Start, Stop, Get-Location methods returning Task). Some applications are location based and cannot work without retrieving location first - so asynchronous plugin model simplifies a lot.

@alexshikov
Copy link

I have all this stuff implemented in core project ILocationService.

@thefex
Copy link
Author

thefex commented Apr 25, 2016

Can you provide link to this implementation? I can't see that.

@alexshikov
Copy link

I'm sorry for misleading. I meant this logic usually implemented depending on the particular project.
Here is an example of one of the LocationService implementation to get location on startup using async approach https://gist.github.com/SeeD-Seifer/153de5d46ffb9a06fae778110e0ce864

@thefex
Copy link
Author

thefex commented Apr 25, 2016

I see. Well it's wrapping actual implementation to async based. I am implementing pure async LocationWatcher atm to make it simpler.

@thefex
Copy link
Author

thefex commented Apr 25, 2016

You can see the way it is going to be implemented in thefex/MvvmCross-Plugins@e638e33, started to implementing this one. You can take idea of implementing mocked location detection in "classic" fused location too.

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

No branches or pull requests

2 participants