Added in API level 30

Builder


class Builder
kotlin.Any
   ↳ android.location.GnssAntennaInfo.Builder

Builder class for GnssAntennaInfo.

Summary

Public constructors

Builder(antennaInfo: GnssAntennaInfo)

Builder(carrierFrequencyMHz: Double, phaseCenterOffset: GnssAntennaInfo.PhaseCenterOffset)

Public methods
open GnssAntennaInfo

Build GnssAntennaInfo object.

open GnssAntennaInfo.Builder
setCarrierFrequencyMHz(carrierFrequencyMHz: Double)

Set antenna carrier frequency (MHz).

open GnssAntennaInfo.Builder

Set antenna phase center offset.

open GnssAntennaInfo.Builder

Set phase center variation corrections.

open GnssAntennaInfo.Builder

Set signal gain corrections.

Public constructors

Builder

Added in API level 31
Builder(antennaInfo: GnssAntennaInfo)
Parameters
antennaInfo GnssAntennaInfo: This value cannot be null.

Builder

Added in API level 31
Builder(
    carrierFrequencyMHz: Double,
    phaseCenterOffset: GnssAntennaInfo.PhaseCenterOffset)
Parameters
phaseCenterOffset GnssAntennaInfo.PhaseCenterOffset: This value cannot be null.

Public methods

build

Added in API level 30
open fun build(): GnssAntennaInfo

Build GnssAntennaInfo object.

Return
GnssAntennaInfo instance of GnssAntennaInfo This value cannot be null.

setCarrierFrequencyMHz

Added in API level 30
open fun setCarrierFrequencyMHz(carrierFrequencyMHz: Double): GnssAntennaInfo.Builder

Set antenna carrier frequency (MHz).

Parameters
carrierFrequencyMHz Double: antenna carrier frequency (MHz) Value is 0.0f or greater
Return
GnssAntennaInfo.Builder Builder builder object This value cannot be null.

setPhaseCenterOffset

Added in API level 30
open fun setPhaseCenterOffset(phaseCenterOffset: GnssAntennaInfo.PhaseCenterOffset): GnssAntennaInfo.Builder

Set antenna phase center offset.

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

setPhaseCenterVariationCorrections

Added in API level 30
open fun setPhaseCenterVariationCorrections(phaseCenterVariationCorrections: GnssAntennaInfo.SphericalCorrections?): GnssAntennaInfo.Builder

Set phase center variation corrections.

Parameters
phaseCenterVariationCorrections GnssAntennaInfo.SphericalCorrections?: phase center variation corrections object This value may be null.
Return
GnssAntennaInfo.Builder Builder builder object This value cannot be null.

setSignalGainCorrections

Added in API level 30
open fun setSignalGainCorrections(signalGainCorrections: GnssAntennaInfo.SphericalCorrections?): GnssAntennaInfo.Builder

Set signal gain corrections.

Parameters
signalGainCorrections GnssAntennaInfo.SphericalCorrections?: signal gain corrections object This value may be null.
Return
GnssAntennaInfo.Builder Builder builder object This value cannot be null.