# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Constants | Ctors | Methods | Inherited Methods

# GnssMeasurementsEvent.Callback

`public static abstract class GnssMeasurementsEvent.Callback`
`extends Object` ``

java.lang.Object
↳ | android.location.GnssMeasurementsEvent.Callback

Used for receiving GNSS satellite measurements from the GNSS engine. Each measurement contains raw and computed data identifying a satellite. You can implement this interface and call `LocationManager#registerGnssMeasurementsCallback`.

## Summary

### Constants
`int` | `STATUS_LOCATION_DISABLED` This constant is deprecated. Do not use.
`int` | `STATUS_NOT_ALLOWED` This constant is deprecated. Do not use.
`int` | `STATUS_NOT_SUPPORTED` This constant is deprecated. Do not use.
`int` | `STATUS_READY` This constant is deprecated. Do not use.

### Public constructors
`Callback()`

### Public methods
`void` | `onGnssMeasurementsReceived(GnssMeasurementsEvent eventArgs)` Reports the latest collected GNSS Measurements.
`void` | `onStatusChanged(int status)` This method is deprecated. Do not rely on this callback. From Android S onwards this callback will be invoked once with `STATUS_READY` in all cases for backwards compatibility, and then never invoked again. Use LocationManager APIs if you need to determine if GNSS measurements are supported or if location is off, etc...

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `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(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Constants

### STATUS_LOCATION_DISABLED

    public static final int STATUS_LOCATION_DISABLED

This constant is deprecated.
Do not use.

GPS provider or Location is disabled, updates will not be received until they are enabled.

Constant Value: 2 (0x00000002)

### STATUS_NOT_ALLOWED

    public static final int STATUS_NOT_ALLOWED

This constant is deprecated.
Do not use.

The client is not allowed to register for GNSS Measurements in general or in the requested mode.

Such a status is returned when a client tries to request a functionality from the GNSS chipset while another client has an ongoing request that does not allow such functionality to be performed.

If such a status is received, one would try again at a later time point where no other client is having a conflicting request.

Constant Value: 3 (0x00000003)

### STATUS_NOT_SUPPORTED

    public static final int STATUS_NOT_SUPPORTED

This constant is deprecated.
Do not use.

The system does not support tracking of GNSS Measurements.

This status will not change in the future.

Constant Value: 0 (0x00000000)

### STATUS_READY

    public static final int STATUS_READY

This constant is deprecated.
Do not use.

GNSS Measurements are successfully being tracked, it will receive updates once they are available.

Constant Value: 1 (0x00000001)

## Public constructors

### Callback

    public Callback ()

## Public methods

### onGnssMeasurementsReceived

    public void onGnssMeasurementsReceived (GnssMeasurementsEvent eventArgs)

Reports the latest collected GNSS Measurements.

Parameters
`eventArgs` | `GnssMeasurementsEvent`

### onStatusChanged

    public void onStatusChanged (int status)

This method is deprecated.
Do not rely on this callback. From Android S onwards this callback will be invoked once with `STATUS_READY` in all cases for backwards compatibility, and then never invoked again. Use LocationManager APIs if you need to determine if GNSS measurements are supported or if location is off, etc...

Reports the latest status of the GNSS Measurements sub-system.

Parameters
`status` | `int`: Value is `STATUS_NOT_SUPPORTED`, `STATUS_READY`, `STATUS_LOCATION_DISABLED`, or `STATUS_NOT_ALLOWED`

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*