Builder
class Builder
kotlin.Any | |
↳ | android.location.GnssCapabilities.Builder |
Builder for GnssCapabilities.
Summary
Public constructors | |
---|---|
Builder() |
|
Builder(capabilities: GnssCapabilities) |
Public methods | |
---|---|
GnssCapabilities |
build() Builds a new GnssCapabilities. |
GnssCapabilities.Builder |
setGnssSignalTypes(gnssSignalTypes: MutableList<GnssSignalType!>) Sets a list of |
GnssCapabilities.Builder |
setHasAccumulatedDeltaRange(capable: Int) Sets accumulated delta range capability. |
GnssCapabilities.Builder |
setHasAntennaInfo(capable: Boolean) Sets antenna info capability. |
GnssCapabilities.Builder |
setHasGeofencing(capable: Boolean) Sets geofencing capability. |
GnssCapabilities.Builder |
setHasLowPowerMode(capable: Boolean) Sets low power mode capability. |
GnssCapabilities.Builder |
setHasMeasurementCorrections(capable: Boolean) Sets measurement corrections capability. |
GnssCapabilities.Builder |
Sets measurement corrections excess path length capability. |
GnssCapabilities.Builder |
Sets measurement corrections for driving capability. |
GnssCapabilities.Builder |
setHasMeasurementCorrectionsLosSats(capable: Boolean) Sets measurement corrections line-of-sight satellites capability. |
GnssCapabilities.Builder |
Sets measurement corrections reflecting plane capability. |
GnssCapabilities.Builder |
setHasMeasurementCorrelationVectors(capable: Boolean) Sets correlation vector capability. |
GnssCapabilities.Builder |
setHasMeasurements(capable: Boolean) Sets measurements capability. |
GnssCapabilities.Builder |
Sets Mobile Station Assisted capability. |
GnssCapabilities.Builder |
Sets Mobile Station Based capability. |
GnssCapabilities.Builder |
Sets navigation messages capability. |
GnssCapabilities.Builder |
setHasOnDemandTime(capable: Boolean) Sets on demand time capability. |
GnssCapabilities.Builder |
setHasPowerMultibandAcquisition(capable: Boolean) Sets power multi-band acquisition capability. |
GnssCapabilities.Builder |
setHasPowerMultibandTracking(capable: Boolean) Sets power multi-band tracking capability. |
GnssCapabilities.Builder |
setHasPowerOtherModes(capable: Boolean) Sets OEM-defined power modes capability. |
GnssCapabilities.Builder |
setHasPowerSinglebandAcquisition(capable: Boolean) Sets power single-band acquisition capability. |
GnssCapabilities.Builder |
setHasPowerSinglebandTracking(capable: Boolean) Sets power single-band tracking capability. |
GnssCapabilities.Builder |
setHasPowerTotal(capable: Boolean) Sets power totals capability. |
GnssCapabilities.Builder |
setHasSatelliteBlocklist(capable: Boolean) Sets satellite blocklist capability. |
GnssCapabilities.Builder |
setHasSatellitePvt(capable: Boolean) Sets satellite PVT capability. |
GnssCapabilities.Builder |
setHasScheduling(capable: Boolean) Sets scheduling capability. |
GnssCapabilities.Builder |
setHasSingleShotFix(capable: Boolean) Sets single shot locating capability. |
Public constructors
Builder
Builder(capabilities: GnssCapabilities)
Parameters | |
---|---|
capabilities |
GnssCapabilities: This value cannot be null . |
Public methods
build
fun build(): GnssCapabilities
Builds a new GnssCapabilities.
Return | |
---|---|
GnssCapabilities |
This value cannot be null . |
setGnssSignalTypes
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
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
fun setHasAntennaInfo(capable: Boolean): GnssCapabilities.Builder
Sets antenna info capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasGeofencing
fun setHasGeofencing(capable: Boolean): GnssCapabilities.Builder
Sets geofencing capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasLowPowerMode
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
fun setHasMeasurementCorrections(capable: Boolean): GnssCapabilities.Builder
Sets measurement corrections capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasMeasurementCorrectionsExcessPathLength
fun setHasMeasurementCorrectionsExcessPathLength(capable: Boolean): GnssCapabilities.Builder
Sets measurement corrections excess path length capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasMeasurementCorrectionsForDriving
fun setHasMeasurementCorrectionsForDriving(capable: Boolean): GnssCapabilities.Builder
Sets measurement corrections for driving capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasMeasurementCorrectionsLosSats
fun setHasMeasurementCorrectionsLosSats(capable: Boolean): GnssCapabilities.Builder
Sets measurement corrections line-of-sight satellites capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasMeasurementCorrectionsReflectingPlane
fun setHasMeasurementCorrectionsReflectingPlane(capable: Boolean): GnssCapabilities.Builder
Sets measurement corrections reflecting plane capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasMeasurementCorrelationVectors
fun setHasMeasurementCorrelationVectors(capable: Boolean): GnssCapabilities.Builder
Sets correlation vector capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasMeasurements
fun setHasMeasurements(capable: Boolean): GnssCapabilities.Builder
Sets measurements capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasMsa
fun setHasMsa(capable: Boolean): GnssCapabilities.Builder
Sets Mobile Station Assisted capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasMsb
fun setHasMsb(capable: Boolean): GnssCapabilities.Builder
Sets Mobile Station Based capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasNavigationMessages
fun setHasNavigationMessages(: Boolean): GnssCapabilities.Builder
Sets navigation messages capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasOnDemandTime
fun setHasOnDemandTime(capable: Boolean): GnssCapabilities.Builder
Sets on demand time capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasPowerMultibandAcquisition
fun setHasPowerMultibandAcquisition(capable: Boolean): GnssCapabilities.Builder
Sets power multi-band acquisition capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasPowerMultibandTracking
fun setHasPowerMultibandTracking(capable: Boolean): GnssCapabilities.Builder
Sets power multi-band tracking capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasPowerOtherModes
fun setHasPowerOtherModes(capable: Boolean): GnssCapabilities.Builder
Sets OEM-defined power modes capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasPowerSinglebandAcquisition
fun setHasPowerSinglebandAcquisition(capable: Boolean): GnssCapabilities.Builder
Sets power single-band acquisition capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasPowerSinglebandTracking
fun setHasPowerSinglebandTracking(capable: Boolean): GnssCapabilities.Builder
Sets power single-band tracking capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasPowerTotal
fun setHasPowerTotal(capable: Boolean): GnssCapabilities.Builder
Sets power totals capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasSatelliteBlocklist
fun setHasSatelliteBlocklist(capable: Boolean): GnssCapabilities.Builder
Sets satellite blocklist capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasSatellitePvt
fun setHasSatellitePvt(capable: Boolean): GnssCapabilities.Builder
Sets satellite PVT capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasScheduling
fun setHasScheduling(capable: Boolean): GnssCapabilities.Builder
Sets scheduling capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |
setHasSingleShotFix
fun setHasSingleShotFix(capable: Boolean): GnssCapabilities.Builder
Sets single shot locating capability.
Return | |
---|---|
GnssCapabilities.Builder |
This value cannot be null . |