aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/cyanogenmod/app/CMContextConstants.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/cyanogenmod/app/CMContextConstants.java')
-rw-r--r--src/java/cyanogenmod/app/CMContextConstants.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/java/cyanogenmod/app/CMContextConstants.java b/src/java/cyanogenmod/app/CMContextConstants.java
index 6b2cb23..98171b8 100644
--- a/src/java/cyanogenmod/app/CMContextConstants.java
+++ b/src/java/cyanogenmod/app/CMContextConstants.java
@@ -120,6 +120,18 @@ public final class CMContextConstants {
public static final String CM_LIVE_LOCK_SCREEN_SERVICE = "cmlivelockscreen";
/**
+ * Use with {@link android.content.Context#getSystemService} to retrieve a
+ * {@link cyanogenmod.weather.CMWeatherManager} to manage the weather service
+ * settings and request weather updates
+ *
+ * @see android.content.Context#getSystemService
+ * @see cyanogenmod.weather.CMWeatherManager
+ *
+ * @hide
+ */
+ public static final String CM_WEATHER_SERVICE = "cmweather";
+
+ /**
* Features supported by the CMSDK.
*/
public static class Features {
@@ -194,5 +206,13 @@ public final class CMContextConstants {
*/
@SdkConstant(SdkConstant.SdkConstantType.FEATURE)
public static final String LIVE_LOCK_SCREEN = "org.cyanogenmod.livelockscreen";
+
+ /**
+ * Feature for {@link PackageManager#getSystemAvailableFeatures} and
+ * {@link PackageManager#hasSystemFeature}: The device includes the cm weather weather
+ * service utilized by the cmsdk.
+ */
+ @SdkConstant(SdkConstant.SdkConstantType.FEATURE)
+ public static final String WEATHER_SERVICES = "org.cyanogenmod.weather";
}
}