Skip to content

Commit

Permalink
docs: Fixing incorrect method name in CapacitorGeolocation (#47)
Browse files Browse the repository at this point in the history
Co-authored-by: pascholda1 <dev@pascholda.one>
Co-authored-by: Joseph Pender <joey@ionic.io>
  • Loading branch information
3 people committed Apr 4, 2024
1 parent 781a18e commit 174f2fe
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/famous-beers-boil.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@capacitor/background-runner": patch
---

Fixing incorrect method name in CapacitorGeolocation
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ Get access to device location information.

| Prop | Type | Description | Since |
| ------------------------ | -------------------------------------------------------------------------------------- | ------------------------------------ | ----- |
| **`getCurrentLocation`** | <code>() =&gt; <a href="#getcurrentpositionresult">GetCurrentPositionResult</a></code> | Get the device's last known location | 1.0.0 |
| **`getCurrentPosition`** | <code>() =&gt; <a href="#getcurrentpositionresult">GetCurrentPositionResult</a></code> | Get the device's last known location | 1.0.0 |


#### GetCurrentPositionResult
Expand Down Expand Up @@ -488,4 +488,5 @@ They could be used if a native watch app is developed as a companion app to a Ca
| **`updateWatchUI`** | <code>(options: { watchUI: string; }) =&gt; void</code> | Replaces the current UI on the watch with what is specified here. |
| **`updateWatchData`** | <code>(options: { data: { [key: string]: string; }; }) =&gt; void</code> | Updates the data the watch is using to display variables in text and button fields |


</capacitor-api-docs>
4 changes: 2 additions & 2 deletions packages/capacitor-plugin/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Get access to device location information.

| Prop | Type | Description | Since |
| ------------------------ | -------------------------------------------------------------------------------------- | ------------------------------------ | ----- |
| **`getCurrentLocation`** | <code>() =&gt; <a href="#getcurrentpositionresult">GetCurrentPositionResult</a></code> | Get the device's last known location | 1.0.0 |
| **`getCurrentPosition`** | <code>() =&gt; <a href="#getcurrentpositionresult">GetCurrentPositionResult</a></code> | Get the device's last known location | 1.0.0 |


#### GetCurrentPositionResult
Expand Down Expand Up @@ -113,4 +113,4 @@ They could be used if a native watch app is developed as a companion app to a Ca
| **`updateWatchUI`** | <code>(options: { watchUI: string; }) =&gt; void</code> | Replaces the current UI on the watch with what is specified here. |
| **`updateWatchData`** | <code>(options: { data: { [key: string]: string; }; }) =&gt; void</code> | Updates the data the watch is using to display variables in text and button fields |

</docgen-api>
</docgen-api>
3 changes: 2 additions & 1 deletion packages/capacitor-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ Get access to device location information.

| Prop | Type | Description | Since |
| ------------------------ | -------------------------------------------------------------------------------------- | ------------------------------------ | ----- |
| **`getCurrentLocation`** | <code>() =&gt; <a href="#getcurrentpositionresult">GetCurrentPositionResult</a></code> | Get the device's last known location | 1.0.0 |
| **`getCurrentPosition`** | <code>() =&gt; <a href="#getcurrentpositionresult">GetCurrentPositionResult</a></code> | Get the device's last known location | 1.0.0 |


#### GetCurrentPositionResult
Expand Down Expand Up @@ -488,4 +488,5 @@ They could be used if a native watch app is developed as a companion app to a Ca
| **`updateWatchUI`** | <code>(options: { watchUI: string; }) =&gt; void</code> | Replaces the current UI on the watch with what is specified here. |
| **`updateWatchData`** | <code>(options: { data: { [key: string]: string; }; }) =&gt; void</code> | Updates the data the watch is using to display variables in text and button fields |


</capacitor-api-docs>
2 changes: 1 addition & 1 deletion packages/capacitor-plugin/src/apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export interface CapacitorGeolocation {
* Get the device's last known location
* @since 1.0.0
*/
getCurrentLocation: () => GetCurrentPositionResult;
getCurrentPosition: () => GetCurrentPositionResult;
}

/**
Expand Down

0 comments on commit 174f2fe

Please sign in to comment.