Skip to content

Commit

Permalink
Geolocation -> geolocation (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinderjit authored and charpeni committed Aug 30, 2018
1 parent 66fd2b3 commit 946acf5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/geolocation.md
Expand Up @@ -61,7 +61,7 @@ Android API >= 18 Positions will also contain a `mocked` boolean to indicate if
### `setRNConfiguration()`

```javascript
Geolocation.setRNConfiguration(config);
geolocation.setRNConfiguration(config);
```

Sets configuration options that will be used in all location requests.
Expand All @@ -81,7 +81,7 @@ Supported options:
### `requestAuthorization()`

```javascript
Geolocation.requestAuthorization();
geolocation.requestAuthorization();
```

Request suitable Location permission based on the key configured on pList. If NSLocationAlwaysUsageDescription is set, it will request Always authorization, although if NSLocationWhenInUseUsageDescription is set, it will request InUse authorization.
Expand All @@ -91,7 +91,7 @@ Request suitable Location permission based on the key configured on pList. If NS
### `getCurrentPosition()`

```javascript
Geolocation.getCurrentPosition(geo_success, [geo_error], [geo_options]);
geolocation.getCurrentPosition(geo_success, [geo_error], [geo_options]);
```

Invokes the success callback once with the latest location info.
Expand All @@ -115,7 +115,7 @@ Supported options:
### `watchPosition()`

```javascript
Geolocation.watchPosition(success, [error], [options]);
geolocation.watchPosition(success, [error], [options]);
```

Invokes the success callback whenever the location changes. Returns a `watchId` (number).
Expand All @@ -141,7 +141,7 @@ Supported options:
### `clearWatch()`

```javascript
Geolocation.clearWatch(watchID);
geolocation.clearWatch(watchID);
```

**Parameters:**
Expand All @@ -155,7 +155,7 @@ Geolocation.clearWatch(watchID);
### `stopObserving()`

```javascript
Geolocation.stopObserving();
geolocation.stopObserving();
```

Stops observing for device location changes. In addition, it removes all listeners previously registered.
Expand Down

0 comments on commit 946acf5

Please sign in to comment.