Alexa Auto SDK  4.3
Public Member Functions | List of all members
aace::location::LocationProvider Class Referenceabstract

Public Member Functions

virtual aace::location::Location getLocation ()=0
 
virtual std::string getCountry ()
 
void locationServiceAccessChanged (LocationServiceAccess access)
 

Detailed Description

LocationProvider should be extended to report geolocation to the Engine.

Deprecated:
This platform interface is deprecated. Use the Alexa Auto Services Bridge (AASB) message broker to publish and subscribe to AASB messages instead.
See also
aace::core::MessageBroker

Member Function Documentation

◆ getLocation()

virtual aace::location::Location aace::location::LocationProvider::getLocation ( )
pure virtual

Returns the current geolocation of the device

Returns
The current location

◆ getCountry()

std::string aace::location::LocationProvider::getCountry ( )
virtual

Returns the ISO country code for the current geolocation of the device. If no country can be determined, this method should return an empty string.

Returns
The current country

◆ locationServiceAccessChanged()

void aace::location::LocationProvider::locationServiceAccessChanged ( LocationServiceAccess  access)

Notifies the Engine of a change in location service access. Use this function when the device's access to location service provider changes. E.g., system location access is not granted to the application.

Parameters
[in]accessAccess to the location service

Alexa Auto SDK 4.3 - Copyright 2017-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0