NmeaLocationDataSource class final
An NMEA location data source object.
This object will parse specific NMEA messages pushed into it. Valid GGA, GSA, GST, GSV, RMC, VTG messages are parsed and, depending upon the message type and contents, a LocationDataSourceLocationChangedEvent or NmeaLocationDataSourceSatellitesChangedEvent may be raised. The LocationDataSourceLocationChangedEvent will return a NmeaLocation object. The NmeaLocationDataSourceSatellitesChangedEvent will return an array of NmeaSatelliteInfo objects. This data source is based on NMEA version 4.11 (November 2018).
- Inheritance
-
- Object
- LocationDataSource
- NmeaLocationDataSource
Constructors
- NmeaLocationDataSource({SpatialReference? receiverSpatialReference, SpatialReference? outputSpatialReference, DatumTransformation? outputDatumTransformation})
-
Creates an NMEA data source object.
factory
-
NmeaLocationDataSource.withProvider(FutureOr<
NmeaDataProvider> generateNmeaDataProvider(), {SpatialReference? receiverSpatialReference, SpatialReference? outputSpatialReference, DatumTransformation? outputDatumTransformation}) -
Creates an NMEA data source object with a function that provides
NmeaDataProvider objects.
factory
Properties
- error → ArcGISException?
-
An error that describes a problem encountered while starting or running
the LocationDataSource.
no setterinherited
- exception → Exception?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onErrorChanged
→ Stream<
ArcGISException?> -
Indicates that the LocationDataSource.error property has changed.
no setterinherited
-
onExceptionChanged
→ Stream<
Exception?> -
no setterinherited
-
onHeadingChanged
→ Stream<
double> -
Set the heading changed callback function for the location data source.
no setterinherited
-
onLocationChanged
→ Stream<
ArcGISLocation> -
Set the location changed callback function for the location data source.
no setterinherited
-
onSatellitesChanged
→ Stream<
List< NmeaSatelliteInfo> > -
Set the satellite info changed callback function for the location data
source.
no setter
-
onSentenceReceived
→ Stream<
String> -
Sets the NMEA sentence received callback function for the location data
source.
no setter
-
onStatusChanged
→ Stream<
LocationDataSourceStatus> -
Set the status changed callback function for the location data source.
no setterinherited
- outputDatumTransformation → DatumTransformation?
-
The DatumTransformation to be used in the project operation.
no setter
- outputSpatialReference → SpatialReference?
-
If set calls the GeometryEngine.project method to generate the output
spatial reference.
no setter
- receiverSpatialReference → SpatialReference
-
The SpatialReference to be assigned to the output NmeaLocation, the
default is WGS84
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → LocationDataSourceStatus
-
The current status of the location data source.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pushData(
Uint8List? data) → void - Reads the input NMEA data creating a NmeaLocation. The NMEA location data source needs to be started before calling this method.
-
start(
) → Future< void> -
Starts the location data source asynchronously and prepares to begin
receiving location updates.
inherited
-
stop(
) → Future< void> -
Stops the location data source asynchronously.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateHeading(
double heading) → void -
Updates the current heading angle, in degrees clockwise, relative to
north.
inherited
-
updateLocation(
ArcGISLocation location) → void -
Updates the position of the current location.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited