GnssAntennaInfo.Builder


public static class GnssAntennaInfo.Builder
extends Object

java.lang.Object
   ↳ android.location.GnssAntennaInfo.Builder


Builder class for GnssAntennaInfo.

Summary

Public constructors

Builder()

This constructor is deprecated. Prefer Builder(double, android.location.GnssAntennaInfo.PhaseCenterOffset).

Builder(GnssAntennaInfo antennaInfo)
Builder(double carrierFrequencyMHz, GnssAntennaInfo.PhaseCenterOffset phaseCenterOffset)

Public methods

GnssAntennaInfo build()

Build GnssAntennaInfo object.

GnssAntennaInfo.Builder setCarrierFrequencyMHz(double carrierFrequencyMHz)

Set antenna carrier frequency (MHz).

GnssAntennaInfo.Builder setPhaseCenterOffset(GnssAntennaInfo.PhaseCenterOffset phaseCenterOffset)

Set antenna phase center offset.

GnssAntennaInfo.Builder setPhaseCenterVariationCorrections(GnssAntennaInfo.SphericalCorrections phaseCenterVariationCorrections)

Set phase center variation corrections.

GnssAntennaInfo.Builder setSignalGainCorrections(GnssAntennaInfo.SphericalCorrections signalGainCorrections)

Set signal gain corrections.

Inherited methods

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 timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public constructors

Builder

Added in API level 30
public Builder ()

This constructor is deprecated.
Prefer Builder(double, android.location.GnssAntennaInfo.PhaseCenterOffset).

Builder

Added in API level 31
public Builder (GnssAntennaInfo antennaInfo)

Parameters
antennaInfo GnssAntennaInfo: This value cannot be null.

Builder

Added in API level 31
public Builder (double carrierFrequencyMHz, 
                GnssAntennaInfo.PhaseCenterOffset phaseCenterOffset)

Parameters
carrierFrequencyMHz double

phaseCenterOffset GnssAntennaInfo.PhaseCenterOffset: This value cannot be null.

Public methods

build

Added in API level 30
public GnssAntennaInfo build ()

Build GnssAntennaInfo object.

Returns
GnssAntennaInfo instance of GnssAntennaInfo This value cannot be null.

setCarrierFrequencyMHz

Added in API level 30
public GnssAntennaInfo.Builder setCarrierFrequencyMHz (double carrierFrequencyMHz)

Set antenna carrier frequency (MHz).

Parameters
carrierFrequencyMHz double: antenna carrier frequency (MHz) Value is 0.0f or greater

Returns
GnssAntennaInfo.Builder Builder builder object This value cannot be null.

setPhaseCenterOffset

Added in API level 30
public GnssAntennaInfo.Builder setPhaseCenterOffset (GnssAntennaInfo.PhaseCenterOffset phaseCenterOffset)

Set antenna phase center offset.

Parameters
phaseCenterOffset GnssAntennaInfo.PhaseCenterOffset: phase center offset object This value cannot be null.

Returns
GnssAntennaInfo.Builder Builder builder object This value cannot be null.

setPhaseCenterVariationCorrections

Added in API level 30
public GnssAntennaInfo.Builder setPhaseCenterVariationCorrections (GnssAntennaInfo.SphericalCorrections phaseCenterVariationCorrections)

Set phase center variation corrections.

Parameters
phaseCenterVariationCorrections GnssAntennaInfo.SphericalCorrections: phase center variation corrections object This value may be null.

Returns
GnssAntennaInfo.Builder Builder builder object This value cannot be null.

setSignalGainCorrections

Added in API level 30
public GnssAntennaInfo.Builder setSignalGainCorrections (GnssAntennaInfo.SphericalCorrections signalGainCorrections)

Set signal gain corrections.

Parameters
signalGainCorrections GnssAntennaInfo.SphericalCorrections: signal gain corrections object This value may be null.

Returns
GnssAntennaInfo.Builder Builder builder object This value cannot be null.