peek_signaled_gps_raw


Description:

[ Version ( since = "1.18" ) ]
public unowned LocationGpsRaw peek_signaled_gps_raw ()

Gets a LocationGpsRaw object with the current GPS raw location information.

Unlike get_gps_raw or get_gps_raw_sync, this method does not perform an explicit query. Instead, this method will return the location information that may have been signaled by the modem. Therefore, this method will only succeed if location signaling is enabled (e.g. with setup in the ModemLocation).

Warning:

The returned value is only valid until the property changes so it is only safe to use this function on the thread where this was constructed. Use get_signaled_gps_raw if on another thread.

Parameters:

this

A ModemLocation.

Returns:

A LocationGpsRaw, or null if none available. Do not free the returned value, it belongs to this.




2022 vala-language.org