GnssCapabilities.Builder


public static final class GnssCapabilities.Builder
extends Object

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


Builder for GnssCapabilities.

Summary

Public constructors

Builder()
Builder(GnssCapabilities capabilities)

Public methods

GnssCapabilities build()

Builds a new GnssCapabilities.

GnssCapabilities.Builder setGnssSignalTypes(List<GnssSignalType> gnssSignalTypes)

Sets a list of GnssSignalType.

GnssCapabilities.Builder setHasAccumulatedDeltaRange(int capable)

Sets accumulated delta range capability.

GnssCapabilities.Builder setHasAntennaInfo(boolean capable)

Sets antenna info capability.

GnssCapabilities.Builder setHasGeofencing(boolean capable)

Sets geofencing capability.

GnssCapabilities.Builder setHasLowPowerMode(boolean capable)

Sets low power mode capability.

GnssCapabilities.Builder setHasMeasurementCorrections(boolean capable)

Sets measurement corrections capability.

GnssCapabilities.Builder setHasMeasurementCorrectionsExcessPathLength(boolean capable)

Sets measurement corrections excess path length capability.

GnssCapabilities.Builder setHasMeasurementCorrectionsForDriving(boolean capable)

Sets measurement corrections for driving capability.

GnssCapabilities.Builder setHasMeasurementCorrectionsLosSats(boolean capable)

Sets measurement corrections line-of-sight satellites capability.

GnssCapabilities.Builder setHasMeasurementCorrectionsReflectingPlane(boolean capable)

Sets measurement corrections reflecting plane capability.

GnssCapabilities.Builder setHasMeasurementCorrelationVectors(boolean capable)

Sets correlation vector capability.

GnssCapabilities.Builder setHasMeasurements(boolean capable)

Sets measurements capability.

GnssCapabilities.Builder setHasMsa(boolean capable)

Sets Mobile Station Assisted capability.

GnssCapabilities.Builder setHasMsb(boolean capable)

Sets Mobile Station Based capability.

GnssCapabilities.Builder setHasNavigationMessages(boolean capable)

Sets navigation messages capability.

GnssCapabilities.Builder setHasOnDemandTime(boolean capable)

Sets on demand time capability.

GnssCapabilities.Builder setHasPowerMultibandAcquisition(boolean capable)

Sets power multi-band acquisition capability.

GnssCapabilities.Builder setHasPowerMultibandTracking(boolean capable)

Sets power multi-band tracking capability.

GnssCapabilities.Builder setHasPowerOtherModes(boolean capable)

Sets OEM-defined power modes capability.

GnssCapabilities.Builder setHasPowerSinglebandAcquisition(boolean capable)

Sets power single-band acquisition capability.

GnssCapabilities.Builder setHasPowerSinglebandTracking(boolean capable)

Sets power single-band tracking capability.

GnssCapabilities.Builder setHasPowerTotal(boolean capable)

Sets power totals capability.

GnssCapabilities.Builder setHasSatelliteBlocklist(boolean capable)

Sets satellite blocklist capability.

GnssCapabilities.Builder setHasSatellitePvt(boolean capable)

Sets satellite PVT capability.

GnssCapabilities.Builder setHasScheduling(boolean capable)

Sets scheduling capability.

GnssCapabilities.Builder setHasSingleShotFix(boolean capable)

Sets single shot locating capability.

Inherited methods

Public constructors

Builder

Added in API level 31
public Builder ()

Builder

Added in API level 31
public Builder (GnssCapabilities capabilities)

Parameters
capabilities GnssCapabilities: This value cannot be null.

Public methods

build

Added in API level 31
public GnssCapabilities build ()

Builds a new GnssCapabilities.

Returns
GnssCapabilities This value cannot be null.

setGnssSignalTypes

Added in API level 34
public GnssCapabilities.Builder setGnssSignalTypes (List<GnssSignalType> gnssSignalTypes)

Sets a list of GnssSignalType.

Parameters
gnssSignalTypes List: This value cannot be null.

Returns
GnssCapabilities.Builder This value cannot be null.

setHasAccumulatedDeltaRange

Added in API level 34
public GnssCapabilities.Builder setHasAccumulatedDeltaRange (int capable)

Sets accumulated delta range capability.

Parameters
capable int: Value is either 0 or a combination of GnssCapabilities.CAPABILITY_UNKNOWN, GnssCapabilities.CAPABILITY_SUPPORTED, and GnssCapabilities.CAPABILITY_UNSUPPORTED

Returns
GnssCapabilities.Builder This value cannot be null.

setHasAntennaInfo

Added in API level 31
public GnssCapabilities.Builder setHasAntennaInfo (boolean capable)

Sets antenna info capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasGeofencing

Added in API level 34
public GnssCapabilities.Builder setHasGeofencing (boolean capable)

Sets geofencing capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasLowPowerMode

Added in API level 34
public GnssCapabilities.Builder setHasLowPowerMode (boolean capable)

Sets low power mode capability.

The low power mode is defined in GNSS HAL. When the low power mode is active, the GNSS hardware must make strong tradeoffs to substantially restrict power use.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasMeasurementCorrections

Added in API level 34
public GnssCapabilities.Builder setHasMeasurementCorrections (boolean capable)

Sets measurement corrections capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasMeasurementCorrectionsExcessPathLength

Added in API level 34
public GnssCapabilities.Builder setHasMeasurementCorrectionsExcessPathLength (boolean capable)

Sets measurement corrections excess path length capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasMeasurementCorrectionsForDriving

Added in API level 34
public GnssCapabilities.Builder setHasMeasurementCorrectionsForDriving (boolean capable)

Sets measurement corrections for driving capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasMeasurementCorrectionsLosSats

Added in API level 34
public GnssCapabilities.Builder setHasMeasurementCorrectionsLosSats (boolean capable)

Sets measurement corrections line-of-sight satellites capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasMeasurementCorrectionsReflectingPlane

Added in API level 34
public GnssCapabilities.Builder setHasMeasurementCorrectionsReflectingPlane (boolean capable)

Sets measurement corrections reflecting plane capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasMeasurementCorrelationVectors

Added in API level 34
public GnssCapabilities.Builder setHasMeasurementCorrelationVectors (boolean capable)

Sets correlation vector capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasMeasurements

Added in API level 31
public GnssCapabilities.Builder setHasMeasurements (boolean capable)

Sets measurements capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasMsa

Added in API level 34
public GnssCapabilities.Builder setHasMsa (boolean capable)

Sets Mobile Station Assisted capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasMsb

Added in API level 34
public GnssCapabilities.Builder setHasMsb (boolean capable)

Sets Mobile Station Based capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasNavigationMessages

Added in API level 31
public GnssCapabilities.Builder setHasNavigationMessages (boolean capable)

Sets navigation messages capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasOnDemandTime

Added in API level 34
public GnssCapabilities.Builder setHasOnDemandTime (boolean capable)

Sets on demand time capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasPowerMultibandAcquisition

Added in API level 34
public GnssCapabilities.Builder setHasPowerMultibandAcquisition (boolean capable)

Sets power multi-band acquisition capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasPowerMultibandTracking

Added in API level 34
public GnssCapabilities.Builder setHasPowerMultibandTracking (boolean capable)

Sets power multi-band tracking capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasPowerOtherModes

Added in API level 34
public GnssCapabilities.Builder setHasPowerOtherModes (boolean capable)

Sets OEM-defined power modes capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasPowerSinglebandAcquisition

Added in API level 34
public GnssCapabilities.Builder setHasPowerSinglebandAcquisition (boolean capable)

Sets power single-band acquisition capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasPowerSinglebandTracking

Added in API level 34
public GnssCapabilities.Builder setHasPowerSinglebandTracking (boolean capable)

Sets power single-band tracking capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasPowerTotal

Added in API level 34
public GnssCapabilities.Builder setHasPowerTotal (boolean capable)

Sets power totals capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasSatelliteBlocklist

Added in API level 34
public GnssCapabilities.Builder setHasSatelliteBlocklist (boolean capable)

Sets satellite blocklist capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasSatellitePvt

Added in API level 34
public GnssCapabilities.Builder setHasSatellitePvt (boolean capable)

Sets satellite PVT capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasScheduling

Added in API level 34
public GnssCapabilities.Builder setHasScheduling (boolean capable)

Sets scheduling capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.

setHasSingleShotFix

Added in API level 34
public GnssCapabilities.Builder setHasSingleShotFix (boolean capable)

Sets single shot locating capability.

Parameters
capable boolean

Returns
GnssCapabilities.Builder This value cannot be null.