CMSDK: Update code comments for permission changes.

Change-Id: I1aac7721244a510acb967f5995303ab9d57a11d3
This commit is contained in:
Adnan Begovic
2015-05-19 13:27:17 -07:00
parent 2217bb4197
commit 8c36c41ff6
3 changed files with 19 additions and 9 deletions

View File

@@ -84,7 +84,8 @@ public class CMStatusBarManager {
* the same id has already been posted by your application and has not yet been removed, it
* will be replaced by the updated information.
*
* You will need the android.permission.PUBLISH_CUSTOM_TILE to utilize this functionality.
* You will need the cyanogenmod.permission.PUBLISH_CUSTOM_TILE
* to utilize this functionality.
*
* @param id An identifier for this customTile unique within your
* application.
@@ -100,7 +101,8 @@ public class CMStatusBarManager {
* the same tag and id has already been posted by your application and has not yet been
* removed, it will be replaced by the updated information.
*
* You will need the android.permission.PUBLISH_CUSTOM_TILE to utilize this functionality.
* You will need the cyanogenmod.permission.PUBLISH_CUSTOM_TILE
* to utilize this functionality.
*
* @param tag A string identifier for this custom tile. May be {@code null}.
* @param id An identifier for this custom tile. The pair (tag, id) must be unique
@@ -132,7 +134,8 @@ public class CMStatusBarManager {
* Similar to {@link cyanogenmod.app.CMStatusBarManager#publishTile(int id, cyanogenmod.app.CustomTile)},
* however lets you specify a {@link android.os.UserHandle}
*
* You will need the android.permission.PUBLISH_CUSTOM_TILE to utilize this functionality.
* You will need the cyanogenmod.permission.PUBLISH_CUSTOM_TILE
* to utilize this functionality.
*
* @param tag A string identifier for this custom tile. May be {@code null}.
* @param id An identifier for this custom tile. The pair (tag, id) must be unique
@@ -164,7 +167,8 @@ public class CMStatusBarManager {
/**
* Remove a custom tile that's currently published to the StatusBarPanel.
*
* You will need the android.permission.PUBLISH_CUSTOM_TILE to utilize this functionality.
* You will need the cyanogenmod.permission.PUBLISH_CUSTOM_TILE
* to utilize this functionality.
*
* @param id The identifier for the custom tile to be removed.
*/
@@ -175,7 +179,8 @@ public class CMStatusBarManager {
/**
* Remove a custom tile that's currently published to the StatusBarPanel.
*
* You will need the android.permission.PUBLISH_CUSTOM_TILE to utilize this functionality.
* You will need the cyanogenmod.platform.PUBLISH_CUSTOM_TILE
* to utilize this functionality.
*
* @param tag The string identifier for the custom tile to be removed.
* @param id The identifier for the custom tile to be removed.
@@ -199,7 +204,8 @@ public class CMStatusBarManager {
* Similar to {@link cyanogenmod.app.CMStatusBarManager#removeTile(String tag, int id)}
* however lets you specific a {@link android.os.UserHandle}
*
* You will need the android.permission.PUBLISH_CUSTOM_TILE to utilize this functionality.
* You will need the cyanogenmod.platform.PUBLISH_CUSTOM_TILE
* to utilize this functionality.
*
* @param tag The string identifier for the custom tile to be removed.
* @param id The identifier for the custom tile to be removed.

View File

@@ -35,12 +35,12 @@ import org.cyanogenmod.internal.statusbar.IStatusBarCustomTileHolder;
* A service that receives calls from the system when new custom tiles are
* posted or removed.
* <p>To extend this class, you must declare the service in your manifest file with
* the TODO: add permission
* the cyanogenmod.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE
* and include an intent filter with the {@link #SERVICE_INTERFACE} action. For example:</p>
* <pre>
* &lt;service android:name=".CustomTileListener"
* android:label="&#64;string/service_name"
* android:permission="TODO: Add me">
* android:permission="cyanogenmod.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE">
* &lt;intent-filter>
* &lt;action android:name="cyanogenmod.app.CustomTileListenerService" />
* &lt;/intent-filter>