Added in API level 31

Builder


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

Builder for GnssCapabilities.

Summary

Public constructors

Builder(capabilities: GnssCapabilities)

Public methods
GnssCapabilities

Builds a new GnssCapabilities.

GnssCapabilities.Builder

Sets a list of GnssSignalType.

GnssCapabilities.Builder

Sets accumulated delta range capability.

GnssCapabilities.Builder

Sets antenna info capability.

GnssCapabilities.Builder

Sets geofencing capability.

GnssCapabilities.Builder

Sets low power mode capability.

GnssCapabilities.Builder

Sets measurement corrections capability.

GnssCapabilities.Builder

Sets measurement corrections excess path length capability.

GnssCapabilities.Builder

Sets measurement corrections for driving capability.

GnssCapabilities.Builder

Sets measurement corrections line-of-sight satellites capability.

GnssCapabilities.Builder

Sets measurement corrections reflecting plane capability.

GnssCapabilities.Builder

Sets correlation vector capability.

GnssCapabilities.Builder

Sets measurements capability.

GnssCapabilities.Builder
setHasMsa(capable: Boolean)

Sets Mobile Station Assisted capability.

GnssCapabilities.Builder
setHasMsb(capable: Boolean)

Sets Mobile Station Based capability.

GnssCapabilities.Builder

Sets navigation messages capability.

GnssCapabilities.Builder

Sets on demand time capability.

GnssCapabilities.Builder

Sets power multi-band acquisition capability.

GnssCapabilities.Builder

Sets power multi-band tracking capability.

GnssCapabilities.Builder

Sets OEM-defined power modes capability.

GnssCapabilities.Builder

Sets power single-band acquisition capability.

GnssCapabilities.Builder

Sets power single-band tracking capability.

GnssCapabilities.Builder

Sets power totals capability.

GnssCapabilities.Builder

Sets satellite blocklist capability.

GnssCapabilities.Builder

Sets satellite PVT capability.

GnssCapabilities.Builder

Sets scheduling capability.

GnssCapabilities.Builder

Sets single shot locating capability.

Public constructors

Builder

Added in API level 31
Builder()

Builder

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

Public methods

build

Added in API level 31
fun build(): GnssCapabilities

Builds a new GnssCapabilities.

Return
GnssCapabilities This value cannot be null.

setGnssSignalTypes

Added in API level 34
fun setGnssSignalTypes(gnssSignalTypes: MutableList<GnssSignalType!>): GnssCapabilities.Builder

Sets a list of GnssSignalType.

Parameters
gnssSignalTypes MutableList<GnssSignalType!>: This value cannot be null.
Return
GnssCapabilities.Builder This value cannot be null.

setHasAccumulatedDeltaRange

Added in API level 34
fun setHasAccumulatedDeltaRange(capable: Int): GnssCapabilities.Builder

Sets accumulated delta range capability.

Parameters
capable Int: Value is either 0 or a combination of android.location.GnssCapabilities#CAPABILITY_UNKNOWN, android.location.GnssCapabilities#CAPABILITY_SUPPORTED, and android.location.GnssCapabilities#CAPABILITY_UNSUPPORTED
Return
GnssCapabilities.Builder This value cannot be null.

setHasAntennaInfo

Added in API level 31
fun setHasAntennaInfo(capable: Boolean): GnssCapabilities.Builder

Sets antenna info capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasGeofencing

Added in API level 34
fun setHasGeofencing(capable: Boolean): GnssCapabilities.Builder

Sets geofencing capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasLowPowerMode

Added in API level 34
fun setHasLowPowerMode(capable: Boolean): GnssCapabilities.Builder

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.

Return
GnssCapabilities.Builder This value cannot be null.

setHasMeasurementCorrections

Added in API level 34
fun setHasMeasurementCorrections(capable: Boolean): GnssCapabilities.Builder

Sets measurement corrections capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasMeasurementCorrectionsExcessPathLength

Added in API level 34
fun setHasMeasurementCorrectionsExcessPathLength(capable: Boolean): GnssCapabilities.Builder

Sets measurement corrections excess path length capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasMeasurementCorrectionsForDriving

Added in API level 34
fun setHasMeasurementCorrectionsForDriving(capable: Boolean): GnssCapabilities.Builder

Sets measurement corrections for driving capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasMeasurementCorrectionsLosSats

Added in API level 34
fun setHasMeasurementCorrectionsLosSats(capable: Boolean): GnssCapabilities.Builder

Sets measurement corrections line-of-sight satellites capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasMeasurementCorrectionsReflectingPlane

Added in API level 34
fun setHasMeasurementCorrectionsReflectingPlane(capable: Boolean): GnssCapabilities.Builder

Sets measurement corrections reflecting plane capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasMeasurementCorrelationVectors

Added in API level 34
fun setHasMeasurementCorrelationVectors(capable: Boolean): GnssCapabilities.Builder

Sets correlation vector capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasMeasurements

Added in API level 31
fun setHasMeasurements(capable: Boolean): GnssCapabilities.Builder

Sets measurements capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasMsa

Added in API level 34
fun setHasMsa(capable: Boolean): GnssCapabilities.Builder

Sets Mobile Station Assisted capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasMsb

Added in API level 34
fun setHasMsb(capable: Boolean): GnssCapabilities.Builder

Sets Mobile Station Based capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasNavigationMessages

Added in API level 31
fun setHasNavigationMessages(capable: Boolean): GnssCapabilities.Builder

Sets navigation messages capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasOnDemandTime

Added in API level 34
fun setHasOnDemandTime(capable: Boolean): GnssCapabilities.Builder

Sets on demand time capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasPowerMultibandAcquisition

Added in API level 34
fun setHasPowerMultibandAcquisition(capable: Boolean): GnssCapabilities.Builder

Sets power multi-band acquisition capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasPowerMultibandTracking

Added in API level 34
fun setHasPowerMultibandTracking(capable: Boolean): GnssCapabilities.Builder

Sets power multi-band tracking capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasPowerOtherModes

Added in API level 34
fun setHasPowerOtherModes(capable: Boolean): GnssCapabilities.Builder

Sets OEM-defined power modes capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasPowerSinglebandAcquisition

Added in API level 34
fun setHasPowerSinglebandAcquisition(capable: Boolean): GnssCapabilities.Builder

Sets power single-band acquisition capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasPowerSinglebandTracking

Added in API level 34
fun setHasPowerSinglebandTracking(capable: Boolean): GnssCapabilities.Builder

Sets power single-band tracking capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasPowerTotal

Added in API level 34
fun setHasPowerTotal(capable: Boolean): GnssCapabilities.Builder

Sets power totals capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasSatelliteBlocklist

Added in API level 34
fun setHasSatelliteBlocklist(capable: Boolean): GnssCapabilities.Builder

Sets satellite blocklist capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasSatellitePvt

Added in API level 34
fun setHasSatellitePvt(capable: Boolean): GnssCapabilities.Builder

Sets satellite PVT capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasScheduling

Added in API level 34
fun setHasScheduling(capable: Boolean): GnssCapabilities.Builder

Sets scheduling capability.

Return
GnssCapabilities.Builder This value cannot be null.

setHasSingleShotFix

Added in API level 34
fun setHasSingleShotFix(capable: Boolean): GnssCapabilities.Builder

Sets single shot locating capability.

Return
GnssCapabilities.Builder This value cannot be null.