@@ -994,6 +994,12 @@ public void removeUpdates(PendingIntent intent) {
994994 * <p> Internally, this method uses both {@link #NETWORK_PROVIDER}
995995 * and {@link #GPS_PROVIDER}.
996996 *
997+ * <p>Before API version 17, this method could be used with
998+ * {@link android.Manifest.permission#ACCESS_FINE_LOCATION} or
999+ * {@link android.Manifest.permission#ACCESS_COARSE_LOCATION}.
1000+ * From API version 17 and onwards, this method requires
1001+ * {@link android.Manifest.permission#ACCESS_FINE_LOCATION} permission.
1002+ *
9971003 * @param latitude the latitude of the central point of the
9981004 * alert region
9991005 * @param longitude the longitude of the central point of the
@@ -1005,7 +1011,8 @@ public void removeUpdates(PendingIntent intent) {
10051011 * @param intent a PendingIntent that will be used to generate an Intent to
10061012 * fire when entry to or exit from the alert region is detected
10071013 *
1008- * @throws SecurityException if no suitable permission is present
1014+ * @throws SecurityException if {@link android.Manifest.permission#ACCESS_FINE_LOCATION}
1015+ * permission is not present
10091016 *
10101017 * @deprecated Use {@link LocationRequest} and {@link Geofence} instead
10111018 */
@@ -1055,7 +1062,8 @@ public void addProximityAlert(double latitude, double longitude, float radius, l
10551062 *
10561063 * @throws IllegalArgumentException if fence is null
10571064 * @throws IllegalArgumentException if intent is null
1058- * @throws SecurityException if no suitable permission is present
1065+ * @throws SecurityException if {@link android.Manifest.permission#ACCESS_FINE_LOCATION}
1066+ * permission is not present
10591067 */
10601068 public void addGeofence (LocationRequest request , Geofence fence , PendingIntent intent ) {
10611069 checkPendingIntent (intent );
@@ -1071,11 +1079,18 @@ public void addGeofence(LocationRequest request, Geofence fence, PendingIntent i
10711079 /**
10721080 * Removes the proximity alert with the given PendingIntent.
10731081 *
1082+ * <p>Before API version 17, this method could be used with
1083+ * {@link android.Manifest.permission#ACCESS_FINE_LOCATION} or
1084+ * {@link android.Manifest.permission#ACCESS_COARSE_LOCATION}.
1085+ * From API version 17 and onwards, this method requires
1086+ * {@link android.Manifest.permission#ACCESS_FINE_LOCATION} permission.
1087+ *
10741088 * @param intent the PendingIntent that no longer needs to be notified of
10751089 * proximity alerts
10761090 *
10771091 * @throws IllegalArgumentException if intent is null
1078- * @throws SecurityException if no suitable permission is present
1092+ * @throws SecurityException if {@link android.Manifest.permission#ACCESS_FINE_LOCATION}
1093+ * permission is not present
10791094 *
10801095 * @deprecated Use {@link LocationRequest} and {@link Geofence} instead
10811096 */
@@ -1102,7 +1117,8 @@ public void removeProximityAlert(PendingIntent intent) {
11021117 *
11031118 * @throws IllegalArgumentException if fence is null
11041119 * @throws IllegalArgumentException if intent is null
1105- * @throws SecurityException if no suitable permission is present
1120+ * @throws SecurityException if {@link android.Manifest.permission#ACCESS_FINE_LOCATION}
1121+ * permission is not present
11061122 */
11071123 public void removeGeofence (Geofence fence , PendingIntent intent ) {
11081124 checkPendingIntent (intent );
@@ -1122,7 +1138,8 @@ public void removeGeofence(Geofence fence, PendingIntent intent) {
11221138 * @param intent a pending intent previously passed to {@link #addGeofence}
11231139 *
11241140 * @throws IllegalArgumentException if intent is null
1125- * @throws SecurityException if no suitable permission is present
1141+ * @throws SecurityException if {@link android.Manifest.permission#ACCESS_FINE_LOCATION}
1142+ * permission is not present
11261143 */
11271144 public void removeAllGeofences (PendingIntent intent ) {
11281145 checkPendingIntent (intent );
0 commit comments