WatchConnection class
Class WatchConnection for connect like sendMessage & setData with Watch
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
platformVersion
→ Future<
String> -
Get Platform Version
no setter
Static Methods
-
sendMessage(
Map< String, dynamic> message) → void - send message to watch the message must conform to https://api.flutter.dev/flutter/services/StandardMessageCodec-class.html
-
setData(
String path, Map< String, dynamic> data) → void - set constant data the data must conform to https://api.flutter.dev/flutter/services/StandardMessageCodec-class.html android: sets data on data layer by the name