# Print output for @column tags ?>
public
final
class
GnssNavigationMessage
extends Object
implements
Parcelable
java.lang.Object | |
↳ | android.location.GnssNavigationMessage |
A class containing a GNSS satellite Navigation Message.
Nested classes | |
---|---|
class |
GnssNavigationMessage.Callback
Used for receiving GNSS satellite Navigation Messages from the GNSS engine. |
Constants | |
---|---|
int |
STATUS_PARITY_PASSED
The Navigation Message was received without any parity error in its navigation words. |
int |
STATUS_PARITY_REBUILT
The Navigation Message was received with words that failed parity check, but the receiver was able to correct those words. |
int |
STATUS_UNKNOWN
The Navigation Message Status is 'unknown'. |
int |
TYPE_BDS_CNAV1
Beidou CNAV1 message contained in the structure. |
int |
TYPE_BDS_CNAV2
Beidou CNAV2 message contained in the structure. |
int |
TYPE_BDS_D1
Beidou D1 message contained in the structure. |
int |
TYPE_BDS_D2
Beidou D2 message contained in the structure. |
int |
TYPE_GAL_F
Galileo F/NAV message contained in the structure. |
int |
TYPE_GAL_I
Galileo I/NAV message contained in the structure. |
int |
TYPE_GLO_L1CA
Glonass L1 CA message contained in the structure. |
int |
TYPE_GPS_CNAV2
GPS CNAV-2 message contained in the structure. |
int |
TYPE_GPS_L1CA
GPS L1 C/A message contained in the structure. |
int |
TYPE_GPS_L2CNAV
GPS L2-CNAV message contained in the structure. |
int |
TYPE_GPS_L5CNAV
GPS L5-CNAV message contained in the structure. |
int |
TYPE_IRN_L5CA
IRNSS L5 C/A message contained in the structure. |
int |
TYPE_QZS_L1CA
QZSS L1 C/A message contained in the structure. |
int |
TYPE_SBS
SBAS message contained in the structure. |
int |
TYPE_UNKNOWN
Message type unknown |
Inherited constants |
---|
Fields | |
---|---|
public
static
final
Creator<GnssNavigationMessage> |
CREATOR
|
Public methods | |
---|---|
int
|
describeContents()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
byte[]
|
getData()
Gets the data of the reported GPS message. |
int
|
getMessageId()
Gets the Message identifier. |
int
|
getStatus()
Gets the Status of the navigation message contained in the object. |
int
|
getSubmessageId()
Gets the sub-message identifier, relevant to the |
int
|
getSvid()
Gets the satellite ID. |
int
|
getType()
Gets the type of the navigation message contained in the object. |
String
|
toString()
Returns a string representation of the object. |
void
|
writeToParcel(Parcel parcel, int flags)
Flatten this object in to a Parcel. |
Inherited methods | |
---|---|
public static final int STATUS_PARITY_PASSED
The Navigation Message was received without any parity error in its navigation words.
Constant Value: 1 (0x00000001)
public static final int STATUS_PARITY_REBUILT
The Navigation Message was received with words that failed parity check, but the receiver was able to correct those words.
Constant Value: 2 (0x00000002)
public static final int STATUS_UNKNOWN
The Navigation Message Status is 'unknown'.
Constant Value: 0 (0x00000000)
public static final int TYPE_BDS_CNAV1
Beidou CNAV1 message contained in the structure.
Constant Value: 1283 (0x00000503)
public static final int TYPE_BDS_CNAV2
Beidou CNAV2 message contained in the structure.
Constant Value: 1284 (0x00000504)
public static final int TYPE_BDS_D1
Beidou D1 message contained in the structure.
Constant Value: 1281 (0x00000501)
public static final int TYPE_BDS_D2
Beidou D2 message contained in the structure.
Constant Value: 1282 (0x00000502)
public static final int TYPE_GAL_F
Galileo F/NAV message contained in the structure.
Constant Value: 1538 (0x00000602)
public static final int TYPE_GAL_I
Galileo I/NAV message contained in the structure.
Constant Value: 1537 (0x00000601)
public static final int TYPE_GLO_L1CA
Glonass L1 CA message contained in the structure.
Constant Value: 769 (0x00000301)
public static final int TYPE_GPS_CNAV2
GPS CNAV-2 message contained in the structure.
Constant Value: 260 (0x00000104)
public static final int TYPE_GPS_L1CA
GPS L1 C/A message contained in the structure.
Constant Value: 257 (0x00000101)
public static final int TYPE_GPS_L2CNAV
GPS L2-CNAV message contained in the structure.
Constant Value: 258 (0x00000102)
public static final int TYPE_GPS_L5CNAV
GPS L5-CNAV message contained in the structure.
Constant Value: 259 (0x00000103)
public static final int TYPE_IRN_L5CA
IRNSS L5 C/A message contained in the structure.
Constant Value: 1793 (0x00000701)
public static final int TYPE_QZS_L1CA
QZSS L1 C/A message contained in the structure.
Constant Value: 1025 (0x00000401)
public static final int TYPE_SBS
SBAS message contained in the structure.
Constant Value: 513 (0x00000201)
public static final int TYPE_UNKNOWN
Message type unknown
Constant Value: 0 (0x00000000)
public int describeContents ()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation. For example, if the object will
include a file descriptor in the output of writeToParcel(android.os.Parcel, int)
,
the return value of this method must include the
CONTENTS_FILE_DESCRIPTOR
bit.
Returns | |
---|---|
int |
a bitmask indicating the set of special object types marshaled
by this Parcelable object instance.
Value is either 0 or CONTENTS_FILE_DESCRIPTOR |
public byte[] getData ()
Gets the data of the reported GPS message.
The bytes (or words) specified using big endian format (MSB first).
Returns | |
---|---|
byte[] |
This value cannot be null . |
public int getMessageId ()
Gets the Message identifier.
This provides an index to help with complete Navigation Message assembly. Similar identifiers within the data bits themselves often supplement this information, in ways even more specific to each message type; see the relevant satellite constellation ICDs for details.
Returns | |
---|---|
int |
public int getStatus ()
Gets the Status of the navigation message contained in the object.
Returns | |
---|---|
int |
public int getSubmessageId ()
Gets the sub-message identifier, relevant to the getType()
of the message.
Returns | |
---|---|
int |
public int getSvid ()
Gets the satellite ID.
Range varies by constellation. See definition at GnssStatus#getSvid(int)
Returns | |
---|---|
int |
public int getType ()
Gets the type of the navigation message contained in the object.
Returns | |
---|---|
int |
Value is TYPE_UNKNOWN , TYPE_GPS_L1CA , TYPE_GPS_L2CNAV , TYPE_GPS_L5CNAV , TYPE_GPS_CNAV2 , TYPE_SBS , TYPE_GLO_L1CA , TYPE_QZS_L1CA , TYPE_BDS_D1 , TYPE_BDS_D2 , TYPE_BDS_CNAV1 , TYPE_BDS_CNAV2 , TYPE_GAL_I , TYPE_GAL_F , or TYPE_IRN_L5CA |
public String toString ()
Returns a string representation of the object. In general, the
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
Returns | |
---|---|
String |
a string representation of the object. |
public void writeToParcel (Parcel parcel, int flags)
Flatten this object in to a Parcel.
Parameters | |
---|---|
parcel |
Parcel : The Parcel in which the object should be written. |
flags |
int : Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE .
Value is either 0 or a combination of Parcelable.PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |