aboutsummaryrefslogtreecommitdiffstats
path: root/system-api
diff options
context:
space:
mode:
authorLuis Vidal <lvidal@cyngn.com>2016-04-06 15:39:49 -0700
committerLuis Vidal <lvidal@cyngn.com>2016-04-07 22:42:43 -0700
commit343245f4e6331b1059240150e62e0c9a9d8d3a54 (patch)
tree2a8901d3268646f2576033895e95be7a7aed4410 /system-api
parent2eddb5f7c706d37004e06ecd5c39d0f3ab724f55 (diff)
downloadvendor_cmsdk-343245f4e6331b1059240150e62e0c9a9d8d3a54.zip
vendor_cmsdk-343245f4e6331b1059240150e62e0c9a9d8d3a54.tar.gz
vendor_cmsdk-343245f4e6331b1059240150e62e0c9a9d8d3a54.tar.bz2
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 'system-api')
-rw-r--r--system-api/cm_system-current.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/system-api/cm_system-current.txt b/system-api/cm_system-current.txt
index 758315e..a00cf44 100644
--- a/system-api/cm_system-current.txt
+++ b/system-api/cm_system-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