Added in API level 33

Builder


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

Builder for GnssAutomaticGainControl

Summary

Public constructors

Constructs a GnssAutomaticGainControl.Builder instance.

Constructs a GnssAutomaticGainControl.Builder instance by copying a GnssAutomaticGainControl.

Public methods
GnssAutomaticGainControl

Builds a GnssAutomaticGainControl instance as specified by this builder.

GnssAutomaticGainControl.Builder
setCarrierFrequencyHz(carrierFrequencyHz: Long)

Sets the Carrier frequency in Hz.

GnssAutomaticGainControl.Builder
setConstellationType(constellationType: Int)

Sets the constellation type.

GnssAutomaticGainControl.Builder
setLevelDb(levelDb: Double)

Sets the Automatic Gain Control level in dB.

Public constructors

Builder

Added in API level 33
Builder()

Constructs a GnssAutomaticGainControl.Builder instance.

Builder

Added in API level 33
Builder(agc: GnssAutomaticGainControl)

Constructs a GnssAutomaticGainControl.Builder instance by copying a GnssAutomaticGainControl.

Parameters
agc GnssAutomaticGainControl: This value cannot be null.

Public methods

build

Added in API level 33
fun build(): GnssAutomaticGainControl

Builds a GnssAutomaticGainControl instance as specified by this builder.

Return
GnssAutomaticGainControl This value cannot be null.

setCarrierFrequencyHz

Added in API level 33
fun setCarrierFrequencyHz(carrierFrequencyHz: Long): GnssAutomaticGainControl.Builder

Sets the Carrier frequency in Hz.

Parameters
carrierFrequencyHz Long: Value is 0 or greater
Return
GnssAutomaticGainControl.Builder This value cannot be null.

setLevelDb

Added in API level 33
fun setLevelDb(levelDb: Double): GnssAutomaticGainControl.Builder

Sets the Automatic Gain Control level in dB.

Parameters
levelDb Double: Value is between -10000 and 10000 inclusive
Return
GnssAutomaticGainControl.Builder This value cannot be null.