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

Value of type 'Request' has no member 'stop' #92

Closed
happiehappie opened this issue Nov 15, 2016 · 3 comments
Closed

Value of type 'Request' has no member 'stop' #92

happiehappie opened this issue Nov 15, 2016 · 3 comments
Labels
Milestone

Comments

@happiehappie
Copy link

happiehappie commented Nov 15, 2016

I was following the documentation literally and I got the error in the title

            let request = Location.getLocation(withAccuracy: .city, frequency: .oneShot, timeout: 50, onSuccess: { (location) in
                // You will receive at max one event if desidered accuracy can be achieved; this because you have set .OneShot as frequency.
            }) { (lastValidLocation, error) in
            }
            request.stop()
@happiehappie
Copy link
Author

I'm using Swift 3 if it matters

@chengsam
Copy link

I think the method is cancel()

@malcommac malcommac added the bug label Nov 30, 2016
@malcommac malcommac added this to the 1.1.1 milestone Nov 30, 2016
@malcommac
Copy link
Owner

Yeah it was cancel().
Fixed doc.
Thanks.

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

No branches or pull requests

3 participants