You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Communication between Wear OS or watchOS SmartWatch and Android/iOS Device with Bluetooth Low Energy (BLE).
4
4
5
-
This will send and recieve messages and/or data to the platform specific wearable communication method. It uses the wearable data layer and messaging API's on android devices and WCSession on iPhones.
5
+
This will send and receive messages and/or data to the platform specific wearable communication method. It uses the wearable data layer and messaging API's on android devices and WCSession on iPhones.
6
6
7
7
## Install
8
8
@@ -37,13 +37,13 @@ WatchConnection.sendMessage({
37
37
});
38
38
```
39
39
40
-
### Recieve message
40
+
### Receive message
41
41
42
42
Use the static method `WatchConnection.listenForMessage;` to register a message listener function.
43
43
44
44
* (android specific) if the message data is a string then the library will assume it is JSON and try to convert it. if that operation fails the message data will be sent to the listener unchanged.
45
45
46
-
#### Recieve message example
46
+
#### Receive message example
47
47
48
48
```dart
49
49
// msg is either a Map<String, dynamic> or a string (make sure to check for that when using the library)
0 commit comments