ModemManager.ModemLocation¶
- Subclasses:
 None
Methods¶
- Inherited:
 ModemManager.GdbusModemLocationProxy (6), Gio.DBusProxy (25), GObject.Object (37), Gio.AsyncInitable (4), Gio.DBusInterface (3), Gio.Initable (2), ModemManager.GdbusModemLocation (22)
- Structs:
 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
Virtual Methods¶
Properties¶
- Inherited:
 
Signals¶
Fields¶
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
Class Details¶
- class ModemManager.ModemLocation(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
The
ModemManager.ModemLocationstructure contains private data and should only be accessed using the provided API.- dup_assistance_data_servers()¶
 - Returns:
 a
None-terminated array of server addresses, orNoneif none available. The returned value should be freed withGLib.strfreev().- Return type:
 [
str]
Gets the list of assistance data servers.
New in version 1.10.
- dup_path()¶
 - Returns:
 The DBus path of the
ModemManager.Object. The returned value should be freed withGLib.free().- Return type:
 
Gets a copy of the DBus path of the
ModemManager.Objectobject which implements this interface.New in version 1.0.
- dup_supl_server()¶
 - Returns:
 The SUPL server address, or
Noneif none available. The returned value should be freed withGLib.free().- Return type:
 
Gets the address of the SUPL server.
New in version 1.6.
- get_3gpp(cancellable, callback, *user_data)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously gets the current 3GPP location information.
When the operation is finished, callback will be invoked in the
thread-default main loopof the thread you are calling this method from. You can then callModemManager.ModemLocation.get_3gpp_finish() to get the result of the operation.See
ModemManager.ModemLocation.get_3gpp_sync() for the synchronous, blocking version of this method.New in version 1.0.
- get_3gpp_finish(res)¶
 - Parameters:
 res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.ModemLocation.get_3gpp().- Raises:
 - Returns:
 A
ModemManager.Location3gpp, orNoneif not available. The returned value should be freed withGObject.Object.unref().- Return type:
 
Finishes an operation started with
ModemManager.ModemLocation.get_3gpp().New in version 1.0.
- get_3gpp_sync(cancellable)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.- Raises:
 - Returns:
 A
ModemManager.Location3gpp, orNoneif not available. The returned value should be freed withGObject.Object.unref().- Return type:
 
Synchronously gets the current 3GPP location information.
The calling thread is blocked until a reply is received. See
ModemManager.ModemLocation.get_3gpp() for the asynchronous version of this method.New in version 1.0.
- get_assistance_data_servers()¶
 - Returns:
 a
None-terminated array of server addresses, orNoneif none available. Do not free the returned value, it belongs to self.- Return type:
 [
str]
Gets the list of assistance data servers.
The returned value is only valid until the property changes so it is only safe to use this function on the thread where self was constructed. Use
ModemManager.ModemLocation.dup_assistance_data_servers() if on another thread.New in version 1.10.
- get_capabilities()¶
 - Returns:
 - Return type:
 
Gets a bitmask of the location capabilities supported by this
ModemManager.ModemLocation.New in version 1.0.
- get_cdma_bs(cancellable, callback, *user_data)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously gets the current CDMA base station location information.
When the operation is finished, callback will be invoked in the
thread-default main loopof the thread you are calling this method from. You can then callModemManager.ModemLocation.get_cdma_bs_finish() to get the result of the operation.See
ModemManager.ModemLocation.get_cdma_bs_sync() for the synchronous, blocking version of this method.New in version 1.0.
- get_cdma_bs_finish(res)¶
 - Parameters:
 res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.ModemLocation.get_cdma_bs().- Raises:
 - Returns:
 A
ModemManager.LocationCdmaBs, orNoneif not available. The returned value should be freed withGObject.Object.unref().- Return type:
 
Finishes an operation started with
ModemManager.ModemLocation.get_cdma_bs().New in version 1.0.
- get_cdma_bs_sync(cancellable)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.- Raises:
 - Returns:
 A
ModemManager.LocationCdmaBs, orNoneif not available. The returned value should be freed withGObject.Object.unref().- Return type:
 
Synchronously gets the current CDMA base station location information.
The calling thread is blocked until a reply is received. See
ModemManager.ModemLocation.get_cdma_bs() for the asynchronous version of this method.New in version 1.0.
- get_enabled()¶
 - Returns:
 - Return type:
 
Gets a bitmask of the location capabilities which are enabled in this
ModemManager.ModemLocation.New in version 1.0.
- get_full(cancellable, callback, *user_data)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously gets the current location information.
When the operation is finished, callback will be invoked in the
thread-default main loopof the thread you are calling this method from. You can then callModemManager.ModemLocation.get_full_finish() to get the result of the operation.See
ModemManager.ModemLocation.get_full_sync() for the synchronous, blocking version of this method.New in version 1.0.
- get_full_finish(res)¶
 - Parameters:
 res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.ModemLocation.get_full().- Raises:
 - Returns:
 Trueif the retrieval was successful,Falseif error is set.- location_3gpp:
 Return location for a
ModemManager.Location3gppif 3GPP location is requested, orNoneif not required. The returned value should be freed withGObject.Object.unref().- location_gps_nmea:
 Return location for a
ModemManager.LocationGpsNmeaif GPS NMEA location is requested, orNoneif not required. The returned value should be freed withGObject.Object.unref().- location_gps_raw:
 Return location for a
ModemManager.LocationGpsRawif GPS raw location is requested, orNoneif not required. The returned value should be freed withGObject.Object.unref().- location_cdma_bs:
 Return location for a
ModemManager.LocationCdmaBsif CDMA Base Station location is requested, orNoneif not required. The returned value should be freed withGObject.Object.unref().
- Return type:
 (
bool, location_3gpp:ModemManager.Location3gpp, location_gps_nmea:ModemManager.LocationGpsNmea, location_gps_raw:ModemManager.LocationGpsRaw, location_cdma_bs:ModemManager.LocationCdmaBs)
Finishes an operation started with
ModemManager.ModemLocation.get_full().New in version 1.0.
- get_full_sync(cancellable)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.- Raises:
 - Returns:
 Trueif the setup was successful,Falseif error is set.- location_3gpp:
 Return location for a
ModemManager.Location3gppif 3GPP location is requested, orNoneif not required. The returned value should be freed withGObject.Object.unref().- location_gps_nmea:
 Return location for a
ModemManager.LocationGpsNmeaif GPS NMEA location is requested, orNoneif not required. The returned value should be freed withGObject.Object.unref().- location_gps_raw:
 Return location for a
ModemManager.LocationGpsRawif GPS raw location is requested, orNoneif not required. The returned value should be freed withGObject.Object.unref().- location_cdma_bs:
 Return location for a
ModemManager.LocationCdmaBsif CDMA Base Station location is requested, orNoneif not required. The returned value should be freed withGObject.Object.unref().
- Return type:
 (
bool, location_3gpp:ModemManager.Location3gpp, location_gps_nmea:ModemManager.LocationGpsNmea, location_gps_raw:ModemManager.LocationGpsRaw, location_cdma_bs:ModemManager.LocationCdmaBs)
Synchronously gets the current location information.
The calling thread is blocked until a reply is received. See
ModemManager.ModemLocation.get_full() for the asynchronous version of this method.New in version 1.0.
- get_gps_nmea(cancellable, callback, *user_data)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously gets the current GPS NMEA location information.
When the operation is finished, callback will be invoked in the
thread-default main loopof the thread you are calling this method from. You can then callModemManager.ModemLocation.get_gps_nmea_finish() to get the result of the operation.See
ModemManager.ModemLocation.get_gps_nmea_sync() for the synchronous, blocking version of this method.New in version 1.0.
- get_gps_nmea_finish(res)¶
 - Parameters:
 res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.ModemLocation.get_gps_nmea().- Raises:
 - Returns:
 A
ModemManager.LocationGpsNmea, orNoneif not available. The returned value should be freed withGObject.Object.unref().- Return type:
 
Finishes an operation started with
ModemManager.ModemLocation.get_gps_nmea().New in version 1.0.
- get_gps_nmea_sync(cancellable)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.- Raises:
 - Returns:
 A
ModemManager.LocationGpsNmea, orNoneif not available. The returned value should be freed withGObject.Object.unref().- Return type:
 
Synchronously gets the current GPS NMEA location information.
The calling thread is blocked until a reply is received. See
ModemManager.ModemLocation.get_gps_nmea() for the asynchronous version of this method.New in version 1.0.
- get_gps_raw(cancellable, callback, *user_data)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously gets the current GPS raw location information.
When the operation is finished, callback will be invoked in the
thread-default main loopof the thread you are calling this method from. You can then callModemManager.ModemLocation.get_gps_raw_finish() to get the result of the operation.See
ModemManager.ModemLocation.get_gps_raw_sync() for the synchronous, blocking version of this method.New in version 1.0.
- get_gps_raw_finish(res)¶
 - Parameters:
 res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.ModemLocation.get_gps_raw().- Raises:
 - Returns:
 A
ModemManager.LocationGpsRaw, orNoneif not available. The returned value should be freed withGObject.Object.unref().- Return type:
 
Finishes an operation started with
ModemManager.ModemLocation.get_gps_raw().New in version 1.0.
- get_gps_raw_sync(cancellable)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.- Raises:
 - Returns:
 A
ModemManager.LocationGpsRaw, orNoneif not available. The returned value should be freed withGObject.Object.unref().- Return type:
 
Synchronously gets the current GPS raw location information.
The calling thread is blocked until a reply is received. See
ModemManager.ModemLocation.get_gps_raw() for the asynchronous version of this method.New in version 1.0.
- get_gps_refresh_rate()¶
 - Returns:
 The GPS refresh rate, or 0 if no fixed rate is used.
- Return type:
 
Gets the GPS refresh rate, in seconds.
New in version 1.0.
- get_path()¶
 - Returns:
 The DBus path of the
ModemManager.Objectobject.- Return type:
 
Gets the DBus path of the
ModemManager.Objectwhich implements this interface.New in version 1.0.
- get_signaled_3gpp()¶
 - Returns:
 A
ModemManager.Location3gppthat must be freed withGObject.Object.unref() orNoneif none available.- Return type:
 
Gets a
ModemManager.Location3gppobject with the current 3GPP location information.Unlike
ModemManager.ModemLocation.get_3gpp() orModemManager.ModemLocation.get_3gpp_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. withModemManager.ModemLocation.setup() in theModemManager.ModemLocation).The values reported by self are not updated when the values in the interface change. Instead, the client is expected to call
ModemManager.ModemLocation.get_signaled_3gpp() again to get a newModemManager.Location3gppwith the new values.New in version 1.18.
- get_signaled_cdma_bs()¶
 - Returns:
 A
ModemManager.LocationCdmaBsthat must be freed withGObject.Object.unref() orNoneif none available.- Return type:
 
Gets a
ModemManager.LocationCdmaBsobject with the current CDMA base station location information.Unlike
ModemManager.ModemLocation.get_cdma_bs() orModemManager.ModemLocation.get_cdma_bs_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. withModemManager.ModemLocation.setup() in theModemManager.ModemLocation).The values reported by self are not updated when the values in the interface change. Instead, the client is expected to call
ModemManager.ModemLocation.get_signaled_cdma_bs() again to get a newModemManager.LocationCdmaBswith the new values.New in version 1.18.
- get_signaled_gps_nmea()¶
 - Returns:
 A
ModemManager.LocationGpsNmeathat must be freed withGObject.Object.unref() orNoneif none available.- Return type:
 
Gets a
ModemManager.LocationGpsNmeaobject with the current GPS NMEA location information.Unlike
ModemManager.ModemLocation.get_gps_nmea() orModemManager.ModemLocation.get_gps_nmea_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. withModemManager.ModemLocation.setup() in theModemManager.ModemLocation).The values reported by self are not updated when the values in the interface change. Instead, the client is expected to call
ModemManager.ModemLocation.get_signaled_gps_nmea() again to get a newModemManager.LocationGpsNmeawith the new values.New in version 1.18.
- get_signaled_gps_raw()¶
 - Returns:
 A
ModemManager.LocationGpsRawthat must be freed withGObject.Object.unref() orNoneif none available.- Return type:
 
Gets a
ModemManager.LocationGpsRawobject with the current GPS raw location information.Unlike
ModemManager.ModemLocation.get_gps_raw() orModemManager.ModemLocation.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. withModemManager.ModemLocation.setup() in theModemManager.ModemLocation).The values reported by self are not updated when the values in the interface change. Instead, the client is expected to call
ModemManager.ModemLocation.get_signaled_gps_raw() again to get a newModemManager.LocationGpsRawwith the new values.New in version 1.18.
- get_supl_server()¶
 - Returns:
 The SUPL server address, or
Noneif none available. Do not free the returned value, it belongs to self.- Return type:
 
Gets the address of the SUPL server.
The returned value is only valid until the property changes so it is only safe to use this function on the thread where self was constructed. Use
ModemManager.ModemLocation.dup_supl_server() if on another thread.New in version 1.6.
- get_supported_assistance_data()¶
 - Returns:
 - Return type:
 
Gets a bitmask of the supported assistance data types.
New in version 1.10.
- inject_assistance_data(data, cancellable, callback, *user_data)¶
 - Parameters:
 data (
bytes) – Data to inject.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously injects assistance data to the GNSS module.
When the operation is finished, callback will be invoked in the
thread-default main loopof the thread you are calling this method from. You can then callModemManager.ModemLocation.inject_assistance_data_finish() to get the result of the operation.See
ModemManager.ModemLocation.inject_assistance_data_sync() for the synchronous, blocking version of this method.New in version 1.10.
- inject_assistance_data_finish(res)¶
 - Parameters:
 res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.ModemLocation.inject_assistance_data().- Raises:
 - Returns:
 Trueif the injection was successful,Falseif error is set.- Return type:
 
Finishes an operation started with
ModemManager.ModemLocation.inject_assistance_data().New in version 1.10.
- inject_assistance_data_sync(data, cancellable)¶
 - Parameters:
 data (
bytes) – Data to inject.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
 - Returns:
 Trueif the injection was successful,Falseif error is set.- Return type:
 
Synchronously injects assistance data to the GNSS module.
The calling thread is blocked until a reply is received. See
ModemManager.ModemLocation.inject_assistance_data() for the asynchronous version of this method.New in version 1.10.
- peek_signaled_3gpp()¶
 - Returns:
 A
ModemManager.Location3gpp, orNoneif none available. Do not free the returned value, it belongs to self.- Return type:
 
Gets a
ModemManager.Location3gppobject with the current 3GPP location information.Unlike
ModemManager.ModemLocation.get_3gpp() orModemManager.ModemLocation.get_3gpp_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. withModemManager.ModemLocation.setup() in theModemManager.ModemLocation).The returned value is only valid until the property changes so it is only safe to use this function on the thread where self was constructed. Use
ModemManager.ModemLocation.get_signaled_3gpp() if on another thread.New in version 1.18.
- peek_signaled_cdma_bs()¶
 - Returns:
 A
ModemManager.LocationCdmaBs, orNoneif none available. Do not free the returned value, it belongs to self.- Return type:
 
Gets a
ModemManager.LocationCdmaBsobject with the current CDMA base station location information.Unlike
ModemManager.ModemLocation.get_cdma_bs() orModemManager.ModemLocation.get_cdma_bs_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. withModemManager.ModemLocation.setup() in theModemManager.ModemLocation).The returned value is only valid until the property changes so it is only safe to use this function on the thread where self was constructed. Use
ModemManager.ModemLocation.get_signaled_cdma_bs() if on another thread.New in version 1.18.
- peek_signaled_gps_nmea()¶
 - Returns:
 A
ModemManager.LocationGpsNmea, orNoneif none available. Do not free the returned value, it belongs to self.- Return type:
 
Gets a
ModemManager.LocationGpsNmeaobject with the current GPS NMEA location information.Unlike
ModemManager.ModemLocation.get_gps_nmea() orModemManager.ModemLocation.get_gps_nmea_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. withModemManager.ModemLocation.setup() in theModemManager.ModemLocation).The returned value is only valid until the property changes so it is only safe to use this function on the thread where self was constructed. Use
ModemManager.ModemLocation.get_signaled_gps_nmea() if on another thread.New in version 1.18.
- peek_signaled_gps_raw()¶
 - Returns:
 A
ModemManager.LocationGpsRaw, orNoneif none available. Do not free the returned value, it belongs to self.- Return type:
 
Gets a
ModemManager.LocationGpsRawobject with the current GPS raw location information.Unlike
ModemManager.ModemLocation.get_gps_raw() orModemManager.ModemLocation.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. withModemManager.ModemLocation.setup() in theModemManager.ModemLocation).The returned value is only valid until the property changes so it is only safe to use this function on the thread where self was constructed. Use
ModemManager.ModemLocation.get_signaled_gps_raw() if on another thread.New in version 1.18.
- set_gps_refresh_rate(rate, cancellable, callback, *user_data)¶
 - Parameters:
 rate (
int) – The GPS refresh rate, in seconds.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously configures the GPS refresh rate.
If a 0 rate is used, the GPS location updates will be immediately propagated to the interface.
When the operation is finished, callback will be invoked in the
thread-default main loopof the thread you are calling this method from. You can then callModemManager.ModemLocation.set_gps_refresh_rate_finish() to get the result of the operation.See
ModemManager.ModemLocation.set_gps_refresh_rate_sync() for the synchronous, blocking version of this method.New in version 1.0.
- set_gps_refresh_rate_finish(res)¶
 - Parameters:
 res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.ModemLocation.set_gps_refresh_rate().- Raises:
 - Returns:
 Trueif setting the GPS refresh rate was successful,Falseif error is set.- Return type:
 
Finishes an operation started with
ModemManager.ModemLocation.set_gps_refresh_rate().New in version 1.0.
- set_gps_refresh_rate_sync(rate, cancellable)¶
 - Parameters:
 rate (
int) – The GPS refresh rate, in seconds.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
 - Returns:
 Trueif setting the refresh rate was successful,Falseif error is set.- Return type:
 
Synchronously configures the GPS refresh rate.
If a 0 rate is used, the GPS location updates will be immediately propagated to the interface.
The calling thread is blocked until a reply is received. See
ModemManager.ModemLocation.set_gps_refresh_rate() for the asynchronous version of this method.New in version 1.0.
- set_supl_server(supl, cancellable, callback, *user_data)¶
 - Parameters:
 supl (
str) – The SUPL server address, given as IP:PORT or with a full URL.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously configures the address of the SUPL server for A-GPS operation.
When the operation is finished, callback will be invoked in the
thread-default main loopof the thread you are calling this method from. You can then callModemManager.ModemLocation.set_supl_server_finish() to get the result of the operation.See
ModemManager.ModemLocation.set_supl_server_sync() for the synchronous, blocking version of this method.New in version 1.6.
- set_supl_server_finish(res)¶
 - Parameters:
 res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.ModemLocation.set_supl_server().- Raises:
 - Returns:
 Trueif setting the SUPL server was successful,Falseif error is set.- Return type:
 
Finishes an operation started with
ModemManager.ModemLocation.set_supl_server().New in version 1.6.
- set_supl_server_sync(supl, cancellable)¶
 - Parameters:
 supl (
str) – The SUPL server address, given as IP:PORT or with a full URL.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
 - Returns:
 Trueif setting the SUPL server was successful,Falseif error is set.- Return type:
 
Synchronously configures the address of the SUPL server for A-GPS operation.
The calling thread is blocked until a reply is received. See
ModemManager.ModemLocation.set_supl_server() for the asynchronous version of this method.New in version 1.6.
- setup(sources, signal_location, cancellable, callback, *user_data)¶
 - Parameters:
 sources (
ModemManager.ModemLocationSource) – Bitmask ofModemManager.ModemLocationSourcevalues specifying which locations should get enabled.signal_location (
bool) – Flag to enable or disable location signaling.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously configures the location sources to use when gathering location information. Also enable or disable location information gathering.
When the operation is finished, callback will be invoked in the
thread-default main loopof the thread you are calling this method from. You can then callModemManager.ModemLocation.setup_finish() to get the result of the operation.See
ModemManager.ModemLocation.setup_sync() for the synchronous, blocking version of this method.New in version 1.0.
- setup_finish(res)¶
 - Parameters:
 res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.ModemLocation.setup().- Raises:
 - Returns:
 - Return type:
 
Finishes an operation started with
ModemManager.ModemLocation.setup().New in version 1.0.
- setup_sync(sources, signal_location, cancellable)¶
 - Parameters:
 sources (
ModemManager.ModemLocationSource) – Bitmask ofModemManager.ModemLocationSourcevalues specifying which locations should get enabled.signal_location (
bool) – Flag to enable or disable location signaling.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
 - Returns:
 - Return type:
 
Synchronously configures the location sources to use when gathering location information. Also enable or disable location information gathering.
The calling thread is blocked until a reply is received. See
ModemManager.ModemLocation.setup() for the asynchronous version of this method.New in version 1.0.
- signals_location()¶
 - 
Gets the status of the location signaling in the
ModemManager.ModemLocation.New in version 1.0.