CLLocation class

The latitude, longitude, and course information reported by the system.

See https://developer.apple.com/documentation/corelocation/cllocation

Constructors

CLLocation({BinaryMessenger? pigeon_binaryMessenger, PigeonInstanceManager? pigeon_instanceManager, void observeValue(NSObject pigeon_instance, String? keyPath, NSObject? object, Map<KeyValueChangeKey, Object?>? change)?, required double latitude, required double longitude})
Creates a CLLocation based on the supplied coordinates.
factory
CLLocation.pigeon_detached({BinaryMessenger? pigeon_binaryMessenger, PigeonInstanceManager? pigeon_instanceManager, void observeValue(NSObject pigeon_instance, String? keyPath, NSObject? object, Map<KeyValueChangeKey, Object?>? change)?})
Constructs CLLocation without creating the associated native object.
CLLocation.pigeon_new({BinaryMessenger? pigeon_binaryMessenger, PigeonInstanceManager? pigeon_instanceManager, void observeValue(NSObject pigeon_instance, String? keyPath, NSObject? object, Map<KeyValueChangeKey, Object?>? change)?, required double latitude, required double longitude})
Creates a CLLocation based on the supplied coordinates.

Properties

hashCode int
The hash code for this object.
no setterinherited
observeValue → void Function(NSObject pigeon_instance, String? keyPath, NSObject? object, Map<KeyValueChangeKey, Object?>? change)?
Informs the observing object when the value at the specified key path relative to the observed object has changed.
finalinherited
pigeon_binaryMessenger BinaryMessenger?
Sends and receives binary data across the Flutter platform barrier.
finalinherited
pigeon_instanceManager → PigeonInstanceManager
Maintains instances stored to communicate with native language objects.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addObserver(NSObject observer, String keyPath, List<KeyValueObservingOptions> options) Future<void>
Registers the observer object to receive KVO notifications for the key path relative to the object receiving this message.
inherited
distance(CLLocation from) Future<double>
Returns the distance (measured in meters) from the current object’s location to the specified location.
getAltitude() Future<double>
The altitude above mean sea level associated with a location, measured in meters.
getCoordinate() Future<CLLocationCoordinate2D>
The geographical coordinate information.
getCourse() Future<double>
The direction in which the device is traveling, measured in degrees and relative to due north.
getCourseAccuracy() Future<double>
The accuracy of the course value, measured in degrees.
getEllipsoidalAltitude() Future<double>
The altitude as a height above the World Geodetic System 1984 (WGS84) ellipsoid, measured in meters.
getFloor() Future<CLFloor?>
The logical floor of the building in which the user is located.
getHorizontalAccuracy() Future<double>
The radius of uncertainty for the location, measured in meters.
getSourceInformation() Future<CLLocationSourceInformation?>
Information about the source that provides the location.
getSpeed() Future<double>
The instantaneous speed of the device, measured in meters per second.
getSpeedAccuracy() Future<double>
The accuracy of the speed value, measured in meters per second.
getTimestamp() Future<int>
The time at which this location was determined (in seconds since epoch).
getVerticalAccuracy() Future<double>
The validity of the altitude values, and their estimated uncertainty, measured in meters.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pigeon_copy() CLLocation
Instantiates and returns a functionally identical object to oneself.
removeObserver(NSObject observer, String keyPath) Future<void>
Stops the observer object from receiving change notifications for the property specified by the key path relative to the object receiving this message.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

pigeon_setUpMessageHandlers({bool pigeon_clearHandlers = false, BinaryMessenger? pigeon_binaryMessenger, PigeonInstanceManager? pigeon_instanceManager, CLLocation pigeon_newInstance()?}) → void