Monotouch CLLocationManager AuthorizationStatus

The current release of MonoTouch (3.2.4) does not have bindings for CLLocationManager.AuthorizationStatus. Here is what you can use to get that value until they create that binding.

public static CLAuthorizationStatus AuthorizationStatus
    var classHandle = (new Class("CLLocationManager")).Handle;
    var selectorHandle = new Selector("authorizationStatus").Handle;
    return (CLAuthorizationStatus)Messaging
      .int_objc_msgSend(classHandle, selectorHandle);

One Response to Monotouch CLLocationManager AuthorizationStatus

  1. Manny says:

    It is there, well now at least but its called CLLocationManager.Status

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: