GnssMeasurementsEventBuilder

public final class GnssMeasurementsEventBuilder
extends Object

java.lang.Object
   ↳ com.google.android.things.userdriver.location.GnssMeasurementsEventBuilder


Builder for GnssMeasurementsEvent, which contains measurement data for all satellites in this event.

Summary

Public constructors

GnssMeasurementsEventBuilder(GnssClock clock)

Constructor.

GnssMeasurementsEventBuilder(GnssClock clock, GnssMeasurement[] measurements)

Full constructor.

Public methods

GnssMeasurementsEventBuilder addMeasurement(GnssMeasurement input)

Add an individual satellite's GnssMeasurement to this event.

GnssMeasurementsEvent build()

Inherited methods

From class java.lang.Object

Public constructors

GnssMeasurementsEventBuilder

GnssMeasurementsEventBuilder (GnssClock clock)

Constructor. Populate with GnssMeasurements after constructing by using addMeasurement(GnssMeasurement).

Parameters
clock GnssClock: the GnssClock representing the time of this event

GnssMeasurementsEventBuilder

GnssMeasurementsEventBuilder (GnssClock clock, 
                GnssMeasurement[] measurements)

Full constructor.

Parameters
clock GnssClock: the GnssClock representing the time of this event

measurements GnssMeasurement: the GnssMeasurements for satellites associated with this event

Public methods

addMeasurement

GnssMeasurementsEventBuilder addMeasurement (GnssMeasurement input)

Add an individual satellite's GnssMeasurement to this event.

Parameters
input GnssMeasurement: the GnssMeasurement for a satellite in this event

Returns
GnssMeasurementsEventBuilder