Package org.robovm.apple.corelocation
Class CLLocation
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.corelocation.CLLocation
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class CLLocation extends NSObject implements NSSecureCoding
- Since:
- Available in iOS 2.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CLLocation.CLLocationPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description CLLocation()
CLLocation(double latitude, double longitude)
CLLocation(CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, double course, double speed, NSDate timestamp)
CLLocation(CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, NSDate timestamp)
CLLocation(NSCoder decoder)
protected
CLLocation(NSObject.Handle h, long handle)
protected
CLLocation(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(NSCoder coder)
double
getAltitude()
CLLocationCoordinate2D
getCoordinate()
double
getCourse()
double
getDistanceTo(CLLocation location)
CLFloor
getFloor()
double
getHorizontalAccuracy()
static double
getLocationDistanceMax()
double
getSpeed()
NSDate
getTimestamp()
double
getVerticalAccuracy()
protected long
init(double latitude, double longitude)
protected long
init(CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, double course, double speed, NSDate timestamp)
protected long
init(CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, NSDate timestamp)
protected long
init(NSCoder decoder)
static boolean
supportsSecureCoding()
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
CLLocation
public CLLocation()
-
CLLocation
protected CLLocation(NSObject.Handle h, long handle)
-
CLLocation
protected CLLocation(NSObject.SkipInit skipInit)
-
CLLocation
public CLLocation(double latitude, double longitude)
-
CLLocation
public CLLocation(CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, NSDate timestamp)
-
CLLocation
public CLLocation(CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, double course, double speed, NSDate timestamp)
- Since:
- Available in iOS 4.2 and later.
-
CLLocation
public CLLocation(NSCoder decoder)
-
-
Method Detail
-
getCoordinate
public CLLocationCoordinate2D getCoordinate()
-
getAltitude
public double getAltitude()
-
getHorizontalAccuracy
public double getHorizontalAccuracy()
-
getVerticalAccuracy
public double getVerticalAccuracy()
-
getCourse
public double getCourse()
- Since:
- Available in iOS 2.2 and later.
-
getSpeed
public double getSpeed()
- Since:
- Available in iOS 2.2 and later.
-
getTimestamp
public NSDate getTimestamp()
-
getFloor
public CLFloor getFloor()
- Since:
- Available in iOS 8.0 and later.
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
getLocationDistanceMax
public static double getLocationDistanceMax()
- Since:
- Available in iOS 6.0 and later.
-
init
protected long init(double latitude, double longitude)
-
init
protected long init(CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, NSDate timestamp)
-
init
protected long init(CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, double course, double speed, NSDate timestamp)
- Since:
- Available in iOS 4.2 and later.
-
getDistanceTo
public double getDistanceTo(CLLocation location)
- Since:
- Available in iOS 3.2 and later.
-
init
protected long init(NSCoder decoder)
-
-