public interface OnNmeaMessageListener

android.location.OnNmeaMessageListener



Used for receiving NMEA sentences from the GNSS. NMEA 0183 is a standard for communicating with marine electronic devices and is a common method for receiving data from a GNSS, typically over a serial port. See NMEA 0183 for more details. You can implement this interface and call LocationManager.addNmeaListener(Executor, OnNmeaMessageListener) to receive NMEA data from the GNSS engine.

Summary

Public methods

abstract void onNmeaMessage(String message, long timestamp)

Called when an NMEA message is received.

Public methods

onNmeaMessage

public abstract void onNmeaMessage (String message, 
                long timestamp)

Called when an NMEA message is received.

Parameters
message String: NMEA message
timestamp long: Timestamp of the location fix, as reported by the GNSS chipset. The value is specified in Unix time milliseconds since 1st January 1970, 00:00:00 UTC

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.