Listen for AGSGPS updates

392
2
11-10-2011 02:14 PM
RobertMartin2
Occasional Contributor II
I would like to use the built-in AGSGPS class to retrieve the current user location. However, if I enable it and then run the rest of my code, the location isn't updated fast enough and the current location appears to be (0.0000, 0.0000). AGSGPS doesn't seem to take a delegate, so is there anyway to listen for its updates? Perhaps using key-value observing? (I'm a little new to this, so if anyone's had any success with this your thoughts would be appreciated.)
0 Kudos
2 Replies
AdamPfister
Esri Contributor
Have you looked here: http://help.arcgis.com/en/arcgismobile/10.0/apis/iOS/2.1/concepts/index.html#/Displaying_location_on... ?

Scroll to the "Accessing location information" section all the way at the bottom.

Adam
0 Kudos
RobertMartin2
Occasional Contributor II
Just what I was looking for. Thank you.
0 Kudos