Beispiel #1
0
		public virtual bool Contains (CLLocationCoordinate2D coordinate)
		{
			if (IsDirectBinding) {
				return MonoMac.ObjCRuntime.Messaging.Boolean_objc_msgSend_CLLocationCoordinate2D (this.Handle, selContainsCoordinate, coordinate);
			} else {
				return MonoMac.ObjCRuntime.Messaging.Boolean_objc_msgSendSuper_CLLocationCoordinate2D (this.SuperHandle, selContainsCoordinate, coordinate);
			}
		}
Beispiel #2
0
		public CLLocation (CLLocationCoordinate2D coordinate, System.Double altitude, System.Double hAccuracy, System.Double vAccuracy, NSDate timestamp) : base (NSObjectFlag.Empty)
		{
			if (timestamp == null)
				throw new ArgumentNullException ("timestamp");
			if (IsDirectBinding) {
				Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_CLLocationCoordinate2D_Double_Double_Double_IntPtr (this.Handle, selInitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp, coordinate, altitude, hAccuracy, vAccuracy, timestamp.Handle);
			} else {
				Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CLLocationCoordinate2D_Double_Double_Double_IntPtr (this.SuperHandle, selInitWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp, coordinate, altitude, hAccuracy, vAccuracy, timestamp.Handle);
			}
		}
Beispiel #3
0
		public CLRegion (CLLocationCoordinate2D center, System.Double radius, string identifier) : base (NSObjectFlag.Empty)
		{
			if (identifier == null)
				throw new ArgumentNullException ("identifier");
			var nsidentifier = new NSString (identifier);

			if (IsDirectBinding) {
				Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_CLLocationCoordinate2D_Double_IntPtr (this.Handle, selInitCircularRegionWithCenterRadiusIdentifier, center, radius, nsidentifier.Handle);
			} else {
				Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CLLocationCoordinate2D_Double_IntPtr (this.SuperHandle, selInitCircularRegionWithCenterRadiusIdentifier, center, radius, nsidentifier.Handle);
			}
						nsidentifier.Dispose ();

		}
Beispiel #4
0
 static extern int CLLocationCoordinate2DIsValid(CLLocationCoordinate2D cord);
 static extern int CLLocationCoordinate2DIsValid(CLLocationCoordinate2D cord);