Skip to content

Commit

Permalink
update device orientation docs to reflect renaming of CompassHeading …
Browse files Browse the repository at this point in the history
…interface (#1107)
  • Loading branch information
rapropos authored and ihadeed committed Feb 23, 2017
1 parent 5ef669a commit 407659a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/deviceorientation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@ export interface DeviceOrientationCompassOptions {
*
* @usage
* ```typescript
* // CompassHeading is an interface for compass
* import { DeviceOrientation, CompassHeading } from 'ionic-native';
* // DeviceOrientationCompassHeading is an interface for compass
* import { DeviceOrientation, DeviceOrientationCompassHeading } from 'ionic-native';
*
*
* // Get the device current compass heading
* DeviceOrientation.getCurrentHeading().then(
* (data: CompassHeading) => console.log(data),
* (data: DeviceOrientationCompassHeading) => console.log(data),
* (error: any) => console.log(error)
* );
*
* // Watch the device compass heading change
* var subscription = DeviceOrientation.watchHeading().subscribe(
* (data: CompassHeading) => console.log(data)
* (data: DeviceOrientationCompassHeading) => console.log(data)
* );
*
* // Stop watching heading change
Expand Down

0 comments on commit 407659a

Please sign in to comment.