Hi Phil
It can be a bit of fun finding them, tho intellisense should help. (on
DesiredAccuracy in this case)
However:
if (CLLocationManager.LocationServicesEnabled)
{
if (locationManager == null)
{
locationManager = new CLLocationManager ();
locationManager.DesiredAccuracy =
CLLocation.AccuracyHundredMeters;
locationManager.UpdatedLocation += delegate(object
sender, CLLocationUpdatedEventArgs e) {
if (e.NewLocation.HorizontalAccuracy <= 100 ||
inaccurateCount > 3)
{
:)
Nic
On Wed, Jun 27, 2012 at 3:03 PM, philcockfield <[email protected]> wrote:
> This is an overtly n00b question - so apologies in advance if this turns out
> to be a forehead slapper.
>
> I'm working with the *CLLocationManager*, and I'm changing the
> DesiredAccuracy property.
>
> In the Obj-C documentation these values are declared as a set of constants.
>
> extern const CLLocationAccuracy kCLLocationAccuracyBestForNavigation;
> extern const CLLocationAccuracy kCLLocationAccuracyBest;
> extern const CLLocationAccuracy kCLLocationAccuracyNearestTenMeters;
> extern const CLLocationAccuracy kCLLocationAccuracyHundredMeters;
> extern const CLLocationAccuracy kCLLocationAccuracyKilometer;
> extern const CLLocationAccuracy kCLLocationAccuracyThreeKilometers;
>
> The property itself (on the MT property) is of type double. Where do I look
> to figure out what these constant values are?
>
> Are constants like this represented as enums anywhere in the MT wrappers -
> or is there a place to look within the Obj-C documentation to find out the
> values.
>
> As I said - very n00b question. Not coming up with anything on my own, so
> thanks!
>
>
>
>
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/CLLocationAccuracy-Contant-Values-tp4655605.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
--
Nic Wise
t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/
Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch