Share via


GnssStatus.GetCarrierFrequencyHz(Int32) Method

Definition

Gets the carrier frequency of the signal tracked.

[Android.Runtime.Register("getCarrierFrequencyHz", "(I)F", "", ApiSince=26)]
public float GetCarrierFrequencyHz (int satelliteIndex);
[<Android.Runtime.Register("getCarrierFrequencyHz", "(I)F", "", ApiSince=26)>]
member this.GetCarrierFrequencyHz : int -> single

Parameters

satelliteIndex
Int32

An index from zero to #getSatelliteCount() - 1

Returns

Attributes

Remarks

Gets the carrier frequency of the signal tracked.

For example it can be the GPS central frequency for L1 = 1575.45 MHz, or L2 = 1227.60 MHz, L5 = 1176.45 MHz, varying GLO channels, etc.

The value is only available if #hasCarrierFrequencyHz(int satelliteIndex) is true.

Java documentation for android.location.GnssStatus.getCarrierFrequencyHz(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to