public class CLLocation extends NSObject implements NSCopying, NSSecureCoding, CKRecordValue
Discussion: Represents a geographical coordinate along with accuracy and timestamp information.
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
CLLocation(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static CLLocation |
alloc() |
static CLLocation |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
double |
altitude()
altitude
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
CLLocationCoordinate2D |
coordinate()
coordinate
|
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
double |
course()
course
|
double |
courseAccuracy()
courseAccuracy
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
double |
distanceFromLocation(CLLocation location)
distanceFromLocation:
|
double |
ellipsoidalAltitude()
ellipsoidalAltitude
|
void |
encodeWithCoder(NSCoder coder) |
CLFloor |
floor()
floor
|
double |
getDistanceFrom(CLLocation location)
Deprecated.
|
static long |
hash_static() |
double |
horizontalAccuracy()
horizontalAccuracy
|
CLLocation |
init() |
CLLocation |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
CLLocation |
initWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestamp(CLLocationCoordinate2D coordinate,
double altitude,
double hAccuracy,
double vAccuracy,
double course,
double courseAccuracy,
double speed,
double speedAccuracy,
NSDate timestamp)
initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:courseAccuracy:speed:speedAccuracy:timestamp:
|
CLLocation |
initWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestampSourceInfo(CLLocationCoordinate2D coordinate,
double altitude,
double hAccuracy,
double vAccuracy,
double course,
double courseAccuracy,
double speed,
double speedAccuracy,
NSDate timestamp,
CLLocationSourceInformation sourceInfo)
initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:courseAccuracy:speed:speedAccuracy:timestamp:sourceInfo
|
CLLocation |
initWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseSpeedTimestamp(CLLocationCoordinate2D coordinate,
double altitude,
double hAccuracy,
double vAccuracy,
double course,
double speed,
NSDate timestamp)
initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:speed:timestamp:
|
CLLocation |
initWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp(CLLocationCoordinate2D coordinate,
double altitude,
double hAccuracy,
double vAccuracy,
NSDate timestamp)
initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:timestamp:
|
CLLocation |
initWithLatitudeLongitude(double latitude,
double longitude)
initWithLatitude:longitude:
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static CLLocation |
new_objc() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
static void |
setVersion_static(long aVersion) |
CLLocationSourceInformation |
sourceInformation()
sourceInformation
|
double |
speed()
speed
|
double |
speedAccuracy()
speedAccuracy
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
NSDate |
timestamp()
timestamp
|
static long |
version_static() |
double |
verticalAccuracy()
verticalAccuracy
|
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static CLLocation alloc()
public static CLLocation allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static CLLocation new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static long version_static()
public double altitude()
Discussion: Returns the altitude of the location. Can be positive (above sea level) or negative (below sea level).
public CLLocationCoordinate2D coordinate()
Discussion: Returns the coordinate of the current location.
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic double course()
Discussion: Returns the course of the location in degrees true North. Negative if course is invalid.
Range: 0.0 - 359.9 degrees, 0 being true North
public double distanceFromLocation(CLLocation location)
Discussion: Returns the lateral distance between two locations.
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic CLFloor floor()
Discussion: Contains information about the logical floor that you are on in the current building if you are inside a supported venue. This will be nil if the floor is unavailable.
@Deprecated public double getDistanceFrom(CLLocation location)
Discussion: Deprecated. Use -distanceFromLocation: instead.
public double horizontalAccuracy()
Discussion: Returns the horizontal accuracy of the location. Negative if the lateral location is invalid.
public CLLocation init()
public CLLocation initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic CLLocation initWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseSpeedTimestamp(CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, double course, double speed, NSDate timestamp)
Discussion: Initialize with the specified parameters.
public CLLocation initWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp(CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, NSDate timestamp)
Discussion: Initialize with the specified parameters.
public CLLocation initWithLatitudeLongitude(double latitude, double longitude)
Discussion: Initialize with the specified latitude and longitude.
public double speed()
Discussion: Returns the speed of the location in m/s. Negative if speed is invalid.
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic NSDate timestamp()
Discussion: Returns the timestamp when this location was determined.
public double verticalAccuracy()
Discussion: Returns the vertical accuracy of the location. Negative if the altitude is invalid.
public double courseAccuracy()
Discussion: Returns the course accuracy of the location in degrees. Returns negative if course is invalid.
public CLLocation initWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestamp(CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, double course, double courseAccuracy, double speed, double speedAccuracy, NSDate timestamp)
Discussion: Initialize with the specified parameters.
public double speedAccuracy()
Discussion: Returns the speed accuracy of the location in m/s. Returns -1 if invalid.
public double ellipsoidalAltitude()
Discussion: Returns the ellipsoidal altitude of the location under the WGS 84 reference frame. Can be positive or negative.
public CLLocation initWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestampSourceInfo(CLLocationCoordinate2D coordinate, double altitude, double hAccuracy, double vAccuracy, double course, double courseAccuracy, double speed, double speedAccuracy, NSDate timestamp, CLLocationSourceInformation sourceInfo)
Discussion: Initialize with the specified parameters.
public CLLocationSourceInformation sourceInformation()
Discussion: Contains information about the source of this location.