|
Maps SDK for C++ 1.0.0
|
Provides access to device and fused positioning. More...


Public Member Functions | |
| PositionService (const PositionService &)=delete | |
| PositionService (PositionService &&)=default | |
| Default move constructor noexcept is deduced. | |
| PositionService & | operator= (const PositionService &)=delete |
| Copy assignment operator is deleted to prevent copying of this service. | |
| PositionService & | operator= (PositionService &&)=default |
| Default move assignment operator. | |
| void | addListener (PositionListener listener, sense::EDataType type=sense::EDataType::Position) noexcept |
| Registers a new listener for position updates. | |
| void | removeListener (PositionListener listener) noexcept |
| Unregisters a previously registered position listener. | |
| sense::EDataSourceType | getSourceType () const |
| Retrieves the method used to obtain the position data. | |
| sense::PositionPtr | getPosition (sense::EDataType type=sense::EDataType::Position) const noexcept |
| Fetches the latest position data available. | |
| sense::PlaybackPtr | getPlayback () const noexcept |
| Retrieves the data source playback interface, if available. | |
| int | setDataSource (sense::DataSourcePtr dataSource) noexcept |
| Sets the current data source for obtaining position data. | |
| sense::DataSourcePtr | getDataSource () const noexcept |
| Retrieves the current data source used for obtaining position data. | |
| PositionPublishingPreferences | getPositionPublishingPreferences () const noexcept |
| Get the position publishing preferences. | |
| int | setPositionPublishingPreferences (const PositionPublishingPreferences &prefs) noexcept |
| Set the position publishing preferences. | |
| std::pair< sense::PositionPtr, Time > | getLastPublishedPosition () noexcept |
| Get the last published position. | |
Provides access to device and fused positioning.
Implements share-read / write Api object over IPositionService.
This behaves like a singleton, i.e. all instances are shared behind the same API interface.
Supplies real-time location updates, including GPS and sensor fusion, for navigation and positioning features.
|
inlinenoexcept |
Registers a new listener for position updates.
The listener also receives updates when the availability state of the data type provider changes.
| [in] | listener | The listener to be registered; must not be empty. |
| [in] | type | The type of data the listener registers for, defaults to Position data type. |
|
inlinenoexcept |
Retrieves the current data source used for obtaining position data.
|
inlinenoexcept |
Get the last published position.
|
inlinenoexcept |
Retrieves the data source playback interface, if available.
|
inlinenoexcept |
Fetches the latest position data available.
The API user should check if the provided position is valid by using Position::isValid().
| [in] | type | The type of position data to fetch, defaults to Position data type. |
|
inlinenoexcept |
Get the position publishing preferences.
|
inline |
Retrieves the method used to obtain the position data.
|
delete |
Copy assignment operator is deleted to prevent copying of this service.
|
default |
Default move assignment operator.
Uses the compiler-generated default implementation for move assignment.
|
inlinenoexcept |
Unregisters a previously registered position listener.
| [in] | listener | The listener to be unregistered. |
|
inlinenoexcept |
Sets the current data source for obtaining position data.
| [in] | dataSource | The data source to be used for fetching position data. |
If dataSource is an empty pointer, the current data source will be removed.
|
inlinenoexcept |
Set the position publishing preferences.
| [in] | prefs | The new preferences |