lightbulb_outline Please take our October 2018 developer survey. Start survey
added in API level 24

OnNmeaMessageListener

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(GpsStatus.NmeaListener) 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

added in API level 24
public abstract void onNmeaMessage (String message, 
                long timestamp)

Called when an NMEA message is received.

Parameters
message String: NMEA message

timestamp long: milliseconds since January 1, 1970.