Skip to content

Commit

Permalink
Update APIRef.DeviceObjectAPI.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rotemmiz authored Oct 3, 2017
1 parent e36ebcf commit 6999789
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/APIRef.DeviceObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,11 @@ Currently only available in the iOS Simulator.<br>
Check out Detox's [own test suite](../detox/test/e2e/f-device.js)

### `device.setLocation(lat, lon)`
>Note: `setLocation` is dependent on `fbsimctl`. if `fbsimctl` is not installed, the command will fail, asking for it to be installed.
Sets the simulator location to the given latitude and longitude.

```js
await device.setLocation(32.0853, 34.7818);
```

### `device.setURLBlacklist([urls])`

Expand Down

0 comments on commit 6999789

Please sign in to comment.