Class CoreLocation


  • public final class CoreLocation
    extends java.lang.Object
    • Method Detail

      • CLLocationCoordinate2DIsValid

        public static boolean CLLocationCoordinate2DIsValid​(CLLocationCoordinate2D coord)
        CLLocationCoordinate2DIsValid Discussion: Returns YES if the specified coordinate is valid, NO otherwise.
      • CLLocationCoordinate2DMake

        public static CLLocationCoordinate2D CLLocationCoordinate2DMake​(double latitude,
                                                                        double longitude)
        CLLocationCoordinate2DMake: Discussion: Returns a new CLLocationCoordinate2D at the given latitude and longitude
      • kCLDistanceFilterNone

        public static double kCLDistanceFilterNone()
        kCLDistanceFilterNone Discussion: Use as the distanceFilter property for CLLocationManager. This indicates to the location service that no minimum movement filter is desired - ie, client will be informed of any movement.
      • kCLLocationAccuracyBestForNavigation

        public static double kCLLocationAccuracyBestForNavigation()
        kCLLocationAccuracy Discussion: Used to specify the accuracy level desired. The location service will try its best to achieve your desired accuracy. However, it is not guaranteed. To optimize power performance, be sure to specify an appropriate accuracy for your usage scenario (eg, use a large accuracy value when only a coarse location is needed).
      • kCLLocationAccuracyBest

        public static double kCLLocationAccuracyBest()
      • kCLLocationAccuracyNearestTenMeters

        public static double kCLLocationAccuracyNearestTenMeters()
      • kCLLocationAccuracyHundredMeters

        public static double kCLLocationAccuracyHundredMeters()
      • kCLLocationAccuracyKilometer

        public static double kCLLocationAccuracyKilometer()
      • kCLLocationAccuracyThreeKilometers

        public static double kCLLocationAccuracyThreeKilometers()
      • CLLocationDistanceMax

        public static double CLLocationDistanceMax()
        CLLocationDistanceMax Discussion: Used to specify the maximum CLLocationDistance
      • CLTimeIntervalMax

        public static double CLTimeIntervalMax()
        CLTimeIntervalMax Discussion: Used to specify the maximum NSTimeInterval
      • kCLLocationCoordinate2DInvalid

        public static CLLocationCoordinate2D kCLLocationCoordinate2DInvalid()
        kCLLocationCoordinate2DInvalid Discussion: Used to specify an invalid CLLocationCoordinate2D.
      • kCLErrorDomain

        public static java.lang.String kCLErrorDomain()
        kCLErrorDomain Discussion: Error returned as the domain to NSError from CoreLocation. The file CLError.h defines constants for the errors in kCLErrorDomain.
      • kCLErrorUserInfoAlternateRegionKey

        public static java.lang.String kCLErrorUserInfoAlternateRegionKey()
        kCLErrorUserInfoAlternateRegionKey Discussion: When an error with code kCLErrorRegionMonitoringResponseDelayed is received, this key may be populated in the userInfo dictionary. The value is a CLRegion that the location service can more effectively monitor.
      • kCLHeadingFilterNone

        public static double kCLHeadingFilterNone()
        kCLHeadingFilterNone Discussion: Use as the headingFilter property for CLLocationManager. This indicates to the heading service that no minimum movement filter is desired - ie, client will be informed of any movement.
      • kCLLocationAccuracyReduced

        public static double kCLLocationAccuracyReduced()
        kCLLocationAccuracyReduced Discussion: If you set your CLLocationManager's desiredAccuracy property to this value, locations delivered to your delegate in response to startUpdatingLocation or requestLocation will have their accuracy reduced. The locations you receive will match the locations your app would have received if the user had decided not to grant your app authorization for precise location.