Skip to content

Commit

Permalink
refactor!: fix typo in CapacitorWatch (#95)
Browse files Browse the repository at this point in the history
* refactor!: fix typo in CapacitorWatch

* adding changeset

---------

Co-authored-by: Joseph Pender <[email protected]>
  • Loading branch information
jcesarmobile and theproducer authored Jun 27, 2024
1 parent 3194a7d commit 36d9a61
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 29 deletions.
5 changes: 5 additions & 0 deletions .changeset/modern-panthers-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@capacitor/background-runner": major
---

Fixing typo in CapacitorWatch interface name
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -492,21 +492,21 @@ Get access to device location information.
| **`heading`** | <code>number \| null</code> | The heading the user is facing (if available) | 1.0.0 |


#### CapcacitorWatch
#### CapacitorWatch

Interact with a watch paired with this app

sendMessage, transferUserInfo and updateApplicationContext are raw routes to the WCSession delegate methods, but have no effects currently in a CapactiorWatch Watch application.
They could be used if a native watch app is developed as a companion app to a Capacitor app

| Prop | Type | Description |
| ------------------------------ | ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **`sendMessage`** | <code>(options: []) =&gt; void</code> | Sends a message to the watch with the sendMessage() WCSession delegate method This has no effect on a CapacitorWatch watch app |
| **`transferUserInfo`** | <code>(options: []) =&gt; void</code> | Sends information to the watch with the transferUserInfo() WCSession delegate method This has no effect on a CapacitorWatch watch app |
| **`updateApplicationContext`** | <code>(options: []) =&gt; void</code> | Updates the application context on the watch with the updateApplicationContext() WCSession delegate method This has no effect on a CapacitorWatch watch app |
| **`isReachable`** | <code>boolean</code> | Checks to see if the compaion watch is reachable |
| **`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 |
| Prop | Type | Description |
| ------------------------------ | ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **`sendMessage`** | <code>(options: []) =&gt; void</code> | Sends a message to the watch with the sendMessage() WCSession delegate method This has no effect on a <a href="#capacitorwatch">CapacitorWatch</a> watch app |
| **`transferUserInfo`** | <code>(options: []) =&gt; void</code> | Sends information to the watch with the transferUserInfo() WCSession delegate method This has no effect on a <a href="#capacitorwatch">CapacitorWatch</a> watch app |
| **`updateApplicationContext`** | <code>(options: []) =&gt; void</code> | Updates the application context on the watch with the updateApplicationContext() WCSession delegate method This has no effect on a <a href="#capacitorwatch">CapacitorWatch</a> watch app |
| **`isReachable`** | <code>boolean</code> | Checks to see if the compaion watch is reachable |
| **`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>
18 changes: 9 additions & 9 deletions packages/capacitor-plugin/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,20 +97,20 @@ Get access to device location information.
| **`heading`** | <code>number \| null</code> | The heading the user is facing (if available) | 1.0.0 |


#### CapcacitorWatch
#### CapacitorWatch

Interact with a watch paired with this app

sendMessage, transferUserInfo and updateApplicationContext are raw routes to the WCSession delegate methods, but have no effects currently in a CapactiorWatch Watch application.
They could be used if a native watch app is developed as a companion app to a Capacitor app

| Prop | Type | Description |
| ------------------------------ | ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **`sendMessage`** | <code>(options: []) =&gt; void</code> | Sends a message to the watch with the sendMessage() WCSession delegate method This has no effect on a CapacitorWatch watch app |
| **`transferUserInfo`** | <code>(options: []) =&gt; void</code> | Sends information to the watch with the transferUserInfo() WCSession delegate method This has no effect on a CapacitorWatch watch app |
| **`updateApplicationContext`** | <code>(options: []) =&gt; void</code> | Updates the application context on the watch with the updateApplicationContext() WCSession delegate method This has no effect on a CapacitorWatch watch app |
| **`isReachable`** | <code>boolean</code> | Checks to see if the compaion watch is reachable |
| **`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 |
| Prop | Type | Description |
| ------------------------------ | ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **`sendMessage`** | <code>(options: []) =&gt; void</code> | Sends a message to the watch with the sendMessage() WCSession delegate method This has no effect on a <a href="#capacitorwatch">CapacitorWatch</a> watch app |
| **`transferUserInfo`** | <code>(options: []) =&gt; void</code> | Sends information to the watch with the transferUserInfo() WCSession delegate method This has no effect on a <a href="#capacitorwatch">CapacitorWatch</a> watch app |
| **`updateApplicationContext`** | <code>(options: []) =&gt; void</code> | Updates the application context on the watch with the updateApplicationContext() WCSession delegate method This has no effect on a <a href="#capacitorwatch">CapacitorWatch</a> watch app |
| **`isReachable`** | <code>boolean</code> | Checks to see if the compaion watch is reachable |
| **`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>
18 changes: 9 additions & 9 deletions packages/capacitor-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -492,21 +492,21 @@ Get access to device location information.
| **`heading`** | <code>number \| null</code> | The heading the user is facing (if available) | 1.0.0 |


#### CapcacitorWatch
#### CapacitorWatch

Interact with a watch paired with this app

sendMessage, transferUserInfo and updateApplicationContext are raw routes to the WCSession delegate methods, but have no effects currently in a CapactiorWatch Watch application.
They could be used if a native watch app is developed as a companion app to a Capacitor app

| Prop | Type | Description |
| ------------------------------ | ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **`sendMessage`** | <code>(options: []) =&gt; void</code> | Sends a message to the watch with the sendMessage() WCSession delegate method This has no effect on a CapacitorWatch watch app |
| **`transferUserInfo`** | <code>(options: []) =&gt; void</code> | Sends information to the watch with the transferUserInfo() WCSession delegate method This has no effect on a CapacitorWatch watch app |
| **`updateApplicationContext`** | <code>(options: []) =&gt; void</code> | Updates the application context on the watch with the updateApplicationContext() WCSession delegate method This has no effect on a CapacitorWatch watch app |
| **`isReachable`** | <code>boolean</code> | Checks to see if the compaion watch is reachable |
| **`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 |
| Prop | Type | Description |
| ------------------------------ | ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **`sendMessage`** | <code>(options: []) =&gt; void</code> | Sends a message to the watch with the sendMessage() WCSession delegate method This has no effect on a <a href="#capacitorwatch">CapacitorWatch</a> watch app |
| **`transferUserInfo`** | <code>(options: []) =&gt; void</code> | Sends information to the watch with the transferUserInfo() WCSession delegate method This has no effect on a <a href="#capacitorwatch">CapacitorWatch</a> watch app |
| **`updateApplicationContext`** | <code>(options: []) =&gt; void</code> | Updates the application context on the watch with the updateApplicationContext() WCSession delegate method This has no effect on a <a href="#capacitorwatch">CapacitorWatch</a> watch app |
| **`isReachable`** | <code>boolean</code> | Checks to see if the compaion watch is reachable |
| **`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/src/apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export interface CapacitorNotifications {
* sendMessage, transferUserInfo and updateApplicationContext are raw routes to the WCSession delegate methods, but have no effects currently in a CapactiorWatch Watch application.
* They could be used if a native watch app is developed as a companion app to a Capacitor app
*/
export interface CapcacitorWatch {
export interface CapacitorWatch {
/**
* Sends a message to the watch with the sendMessage() WCSession delegate method
*
Expand Down Expand Up @@ -365,5 +365,5 @@ export interface CapacitorAPI {
CapacitorKV: CapacitorKV;
CapacitorNotifications: CapacitorNotifications;
CapacitorGeolocation: CapacitorGeolocation;
CapacitorWatch: CapcacitorWatch;
CapacitorWatch: CapacitorWatch;
}

0 comments on commit 36d9a61

Please sign in to comment.