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

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.