Alexa Auto SDK  3.2.0
Classes | Public Member Functions | List of all members
com.amazon.aace.location.LocationProvider Class Referenceabstract

Classes

enum  LocationServiceAccess
 

Public Member Functions

abstract Location getLocation ()
 
String getCountry ()
 
void locationServiceAccessChanged (LocationServiceAccess access)
 

Detailed Description

LocationProvider should be extended to report geolocation to the Engine.

Member Function Documentation

◆ getLocation()

abstract Location com.amazon.aace.location.LocationProvider.getLocation ( )
abstract

Returns the current geolocation of the device

Returns
The current location

◆ getCountry()

String com.amazon.aace.location.LocationProvider.getCountry ( )

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 com.amazon.aace.location.LocationProvider.locationServiceAccessChanged ( LocationServiceAccess  access)

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

Parameters
accessAccess to the location service

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