ionic-watch-connectivity
v0.1.1
Published
Capacitor plugin for Ionic enabling seamless watch connectivity
Downloads
17
Readme
ionic-watch-connectivity
Capacitor plugin for Ionic enabling seamless watch connectivity
Install
npm install ionic-watch-connectivity
npx cap sync
API
isWatchAvailable()
isWatchAvailable() => Promise<WatchAvailability>
Returns: Promise<WatchAvailability>
updateApplicationContext(...)
updateApplicationContext(data: ApplicationContextUpdateData) => Promise<WatchConnectivityOperationResult>
| Param | Type |
| ---------- | ------------------------------------------------------------------------------------- |
| data
| ApplicationContextUpdateData |
Returns: Promise<WatchConnectivityOperationResult>
Interfaces
WatchAvailability
| Prop | Type |
| ----------------- | -------------------- |
| isAvailable
| boolean |
WatchConnectivityOperationResult
| Prop | Type |
| ------------- | -------------------- |
| success
| boolean |
| message
| string |
ApplicationContextUpdateData
| Prop | Type |
| ---------- | ------------------- |
| data
| object |