# GnssMeasurementsEventBuilder

Summary:[Ctors](https://developer.android.com/reference/com/google/android/things/userdriver/location/GnssMeasurementsEventBuilder#pubctors)\|[Methods](https://developer.android.com/reference/com/google/android/things/userdriver/location/GnssMeasurementsEventBuilder#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/com/google/android/things/userdriver/location/GnssMeasurementsEventBuilder#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/com/google/android/things/userdriver/location/GnssMeasurementsEventBuilder#)  

# GnssMeasurementsEventBuilder

`
public

final

class
GnssMeasurementsEventBuilder
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|----------------------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object)  ||
| ↳ | com.google.android.things.userdriver.location.GnssMeasurementsEventBuilder |

<br />

*** ** * ** ***

Builder for[GnssMeasurementsEvent](https://developer.android.com/reference/android/location/GnssMeasurementsEvent.html), which contains measurement data for all satellites in this event.

## Summary

|                                                                                                                                                                                                                                   ### Public constructors                                                                                                                                                                                                                                   ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[GnssMeasurementsEventBuilder](https://developer.android.com/reference/com/google/android/things/userdriver/location/GnssMeasurementsEventBuilder#GnssMeasurementsEventBuilder(android.location.GnssClock))`(`[GnssClock](https://developer.android.com/reference/android/location/GnssClock.html)` clock) ` Constructor.                                                                                                                                                             |
| ` `[GnssMeasurementsEventBuilder](https://developer.android.com/reference/com/google/android/things/userdriver/location/GnssMeasurementsEventBuilder#GnssMeasurementsEventBuilder(android.location.GnssClock, android.location.GnssMeasurement[]))`(`[GnssClock](https://developer.android.com/reference/android/location/GnssClock.html)` clock, `[GnssMeasurement[]](https://developer.android.com/reference/android/location/GnssMeasurement.html)` measurements) ` Full constructor. |

|                                                                                                                                                                                                                                                                                            ### Public methods                                                                                                                                                                                                                                                                                            ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[GnssMeasurementsEventBuilder](https://developer.android.com/reference/com/google/android/things/userdriver/location/GnssMeasurementsEventBuilder) | ` `[addMeasurement](https://developer.android.com/reference/com/google/android/things/userdriver/location/GnssMeasurementsEventBuilder#addMeasurement(android.location.GnssMeasurement))`(`[GnssMeasurement](https://developer.android.com/reference/android/location/GnssMeasurement.html)` input) ` Add an individual satellite's[GnssMeasurement](https://developer.android.com/reference/android/location/GnssMeasurement.html)to this event. |
| ` `[GnssMeasurementsEvent](https://developer.android.com/reference/android/location/GnssMeasurementsEvent.html)                                       | ` `[build](https://developer.android.com/reference/com/google/android/things/userdriver/location/GnssMeasurementsEventBuilder#build())`() `                                                                                                                                                                                                                                                                                                       |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/com/google/android/things/userdriver/location/GnssMeasurementsEventBuilder#)From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                                                                                                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                                                                                                                                                                                                                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                                                                                                                                                                                                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                                                                                                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                                                                                                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                                                                                                                                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                                                                                                                                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                                                                                                                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long, int))`(long millis, int nanos) ` Causes the current thread to wait until another thread invokes the[notify()](https://developer.android.com/reference/java/lang/Object.html#notify())method or the[notifyAll()](https://developer.android.com/reference/java/lang/Object.html#notifyAll())method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long millis) ` Causes the current thread to wait until either another thread invokes the[notify()](https://developer.android.com/reference/java/lang/Object.html#notify())method or the[notifyAll()](https://developer.android.com/reference/java/lang/Object.html#notifyAll())method for this object, or a specified amount of time has elapsed.                                                                 | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until another thread invokes the[notify()](https://developer.android.com/reference/java/lang/Object.html#notify())method or the[notifyAll()](https://developer.android.com/reference/java/lang/Object.html#notifyAll())method for this object.                                                                                                                                  | ||

## Public constructors

### GnssMeasurementsEventBuilder

```
GnssMeasurementsEventBuilder (GnssClock clock)
```

Constructor. Populate with[GnssMeasurements](https://developer.android.com/reference/android/location/GnssMeasurement.html)after constructing by using[addMeasurement(GnssMeasurement)](https://developer.android.com/reference/com/google/android/things/userdriver/location/GnssMeasurementsEventBuilder#addMeasurement(android.location.GnssMeasurement)).

<br />

|                                                                       Parameters                                                                        ||
|---------|------------------------------------------------------------------------------------------------------------------------------------------------|
| `clock` | `GnssClock`: the[GnssClock](https://developer.android.com/reference/android/location/GnssClock.html)representing the time of this event <br /> |

### GnssMeasurementsEventBuilder

```
GnssMeasurementsEventBuilder (GnssClock clock, 
                GnssMeasurement[] measurements)
```

Full constructor.

<br />

|                                                                                       Parameters                                                                                        ||
|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `clock`        | `GnssClock`: the[GnssClock](https://developer.android.com/reference/android/location/GnssClock.html)representing the time of this event <br />                          |
| `measurements` | `GnssMeasurement`: the[GnssMeasurements](https://developer.android.com/reference/android/location/GnssMeasurement.html)for satellites associated with this event <br /> |

## Public methods

### addMeasurement

```
GnssMeasurementsEventBuilder addMeasurement (GnssMeasurement input)
```

Add an individual satellite's[GnssMeasurement](https://developer.android.com/reference/android/location/GnssMeasurement.html)to this event.

<br />

|                                                                             Parameters                                                                              ||
|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `input` | `GnssMeasurement`: the[GnssMeasurement](https://developer.android.com/reference/android/location/GnssMeasurement.html)for a satellite in this event <br /> |

|                                                                          Returns                                                                           ||
|----------------------------------------------------------------------------------------------------------------------------------------------------|--------|
| [GnssMeasurementsEventBuilder](https://developer.android.com/reference/com/google/android/things/userdriver/location/GnssMeasurementsEventBuilder) | <br /> |

### build

```
GnssMeasurementsEvent build ()
```

<br />

<br />

|                                                       Returns                                                        ||
|--------------------------------------------------------------------------------------------------------------|--------|
| [GnssMeasurementsEvent](https://developer.android.com/reference/android/location/GnssMeasurementsEvent.html) | <br /> |

-

  ## Interfaces

  - [GnssStateListener](https://developer.android.com/reference/com/google/android/things/userdriver/location/GnssStateListener)
-

  ## Classes

  - [GnssClockBuilder](https://developer.android.com/reference/com/google/android/things/userdriver/location/GnssClockBuilder)
  - [GnssDriver](https://developer.android.com/reference/com/google/android/things/userdriver/location/GnssDriver)
  - [GnssMeasurementBuilder](https://developer.android.com/reference/com/google/android/things/userdriver/location/GnssMeasurementBuilder)
  - [GnssMeasurementsEventBuilder](https://developer.android.com/reference/com/google/android/things/userdriver/location/GnssMeasurementsEventBuilder)
  - [GnssStatusBuilder](https://developer.android.com/reference/com/google/android/things/userdriver/location/GnssStatusBuilder)