Added in API level 30

PhaseCenterOffset


class PhaseCenterOffset : Parcelable
kotlin.Any
   ↳ android.location.GnssAntennaInfo.PhaseCenterOffset

Class containing information about the antenna phase center offset (PCO). PCO is defined with respect to the origin of the Android sensor coordinate system, e.g., center of primary screen for mobiles - see sensor or form factor documents for details. Uncertainties are reported to 1-sigma.

Summary

Inherited constants
Public constructors
PhaseCenterOffset(offsetXMm: Double, offsetXUncertaintyMm: Double, offsetYMm: Double, offsetYUncertaintyMm: Double, offsetZMm: Double, offsetZUncertaintyMm: Double)

Public methods
Int

Boolean
equals(other: Any?)

Double

Returns the x-axis offset of the phase center from the origin of the Android sensor coordinate system, in millimeters.

Double

Returns the 1-sigma uncertainty of the x-axis offset of the phase center from the origin of the Android sensor coordinate system, in millimeters.

Double

Returns the y-axis offset of the phase center from the origin of the Android sensor coordinate system, in millimeters.

Double

Returns the 1-sigma uncertainty of the y-axis offset of the phase center from the origin of the Android sensor coordinate system, in millimeters.

Double

Returns the z-axis offset of the phase center from the origin of the Android sensor coordinate system, in millimeters.

Double

Returns the 1-sigma uncertainty of the z-axis offset of the phase center from the origin of the Android sensor coordinate system, in millimeters.

Int

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<GnssAntennaInfo.PhaseCenterOffset!>

Public constructors

PhaseCenterOffset

Added in API level 30
PhaseCenterOffset(
    offsetXMm: Double,
    offsetXUncertaintyMm: Double,
    offsetYMm: Double,
    offsetYUncertaintyMm: Double,
    offsetZMm: Double,
    offsetZUncertaintyMm: Double)

Public methods

describeContents

Added in API level 30
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

equals

Added in API level 30
fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getXOffsetMm

Added in API level 30
fun getXOffsetMm(): Double

Returns the x-axis offset of the phase center from the origin of the Android sensor coordinate system, in millimeters.

getXOffsetUncertaintyMm

Added in API level 30
fun getXOffsetUncertaintyMm(): Double

Returns the 1-sigma uncertainty of the x-axis offset of the phase center from the origin of the Android sensor coordinate system, in millimeters.

getYOffsetMm

Added in API level 30
fun getYOffsetMm(): Double

Returns the y-axis offset of the phase center from the origin of the Android sensor coordinate system, in millimeters.

getYOffsetUncertaintyMm

Added in API level 30
fun getYOffsetUncertaintyMm(): Double

Returns the 1-sigma uncertainty of the y-axis offset of the phase center from the origin of the Android sensor coordinate system, in millimeters.

getZOffsetMm

Added in API level 30
fun getZOffsetMm(): Double

Returns the z-axis offset of the phase center from the origin of the Android sensor coordinate system, in millimeters.

getZOffsetUncertaintyMm

Added in API level 30
fun getZOffsetUncertaintyMm(): Double

Returns the 1-sigma uncertainty of the z-axis offset of the phase center from the origin of the Android sensor coordinate system, in millimeters.

hashCode

Added in API level 30
fun hashCode(): Int
Return
Int a hash code value for this object.

toString

Added in API level 30
fun toString(): String
Return
String a string representation of the object.

writeToParcel

Added in API level 30
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 30
static val CREATOR: Parcelable.Creator<GnssAntennaInfo.PhaseCenterOffset!>