MethodChannelWatchConnection class
Class WatchConnection for connect like sendMessage & setData with Watch
- Inheritance
-
- Object
- PlatformInterface
- WatchConnectionFlutterPlatform
- MethodChannelWatchConnection
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getPlatformVersion(
) → Future< String?> -
Get Platform Version
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendMessage(
Map< String, dynamic> message) → void -
send message to watch
the message must conform to https://api.flutter.dev/flutter/services/StandardMessageCodec-class.html
override
-
sendWatchface(
String path) → Future< bool> -
Send a message to all connected watches
override
-
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
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited