diff options
author | Luis Vidal <lvidal@cyngn.com> | 2016-04-06 15:39:49 -0700 |
---|---|---|
committer | Luis Vidal <lvidal@cyngn.com> | 2016-04-07 22:42:43 -0700 |
commit | 343245f4e6331b1059240150e62e0c9a9d8d3a54 (patch) | |
tree | 2a8901d3268646f2576033895e95be7a7aed4410 /api | |
parent | 2eddb5f7c706d37004e06ecd5c39d0f3ab724f55 (diff) | |
download | vendor_cmsdk-343245f4e6331b1059240150e62e0c9a9d8d3a54.tar.gz vendor_cmsdk-343245f4e6331b1059240150e62e0c9a9d8d3a54.tar.bz2 vendor_cmsdk-343245f4e6331b1059240150e62e0c9a9d8d3a54.zip |
Add API to cancel an active weather request
Add new API cancelRequest to CMWeatherManager. This will allow
clients to cancel a request that was previuosly submitted to
the weather service.
As part of this change, requestWeatherUpdate(weatherLocation),
requestWeatherUpdate(Location) and lookupCity(cityName) will
now return the RequestInfo object created if the request
was successfully submitted to the weather manager service
TICKET: CYNGNOS-2383
TICKET: CYNGNOS-2385
Change-Id: Ic122f91e0ea8a24d81dbed48741ef1e33567b56c
Diffstat (limited to 'api')
-rw-r--r-- | api/cm_current.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/api/cm_current.txt b/api/cm_current.txt index 758315e..a00cf44 100644 --- a/api/cm_current.txt +++ b/api/cm_current.txt @@ -1299,12 +1299,13 @@ package cyanogenmod.util { package cyanogenmod.weather { public class CMWeatherManager { + method public void cancelRequest(cyanogenmod.weather.RequestInfo); method public java.lang.String getActiveWeatherServiceProviderLabel(); method public static cyanogenmod.weather.CMWeatherManager getInstance(android.content.Context); - method public void lookupCity(java.lang.String, cyanogenmod.weather.CMWeatherManager.LookupCityRequestListener); + method public cyanogenmod.weather.RequestInfo lookupCity(java.lang.String, cyanogenmod.weather.CMWeatherManager.LookupCityRequestListener); method public void registerWeatherServiceProviderChangeListener(cyanogenmod.weather.CMWeatherManager.WeatherServiceProviderChangeListener); - method public void requestWeatherUpdate(android.location.Location, cyanogenmod.weather.CMWeatherManager.WeatherUpdateRequestListener); - method public void requestWeatherUpdate(cyanogenmod.weather.WeatherLocation, cyanogenmod.weather.CMWeatherManager.WeatherUpdateRequestListener); + method public cyanogenmod.weather.RequestInfo requestWeatherUpdate(android.location.Location, cyanogenmod.weather.CMWeatherManager.WeatherUpdateRequestListener); + method public cyanogenmod.weather.RequestInfo requestWeatherUpdate(cyanogenmod.weather.WeatherLocation, cyanogenmod.weather.CMWeatherManager.WeatherUpdateRequestListener); method public void unregisterWeatherServiceProviderChangeListener(cyanogenmod.weather.CMWeatherManager.WeatherServiceProviderChangeListener); field public static final int WEATHER_REQUEST_ALREADY_IN_PROGRESS = -3; // 0xfffffffd field public static final int WEATHER_REQUEST_COMPLETED = 1; // 0x1 |