FlutterWearOsConnectivity class
- Inheritance
-
- Object
- PlatformInterface
- FlutterSmartWatchPlatformInterface
- FlutterWearOsConnectivity
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
-
capabilityChanged({String? capabilityName, Uri? capabilityPathURI, UriFilterType filterType = UriFilterType.literal})
→ Stream<CapabilityInfo>
-
Listen to a capability changed
-
configureWearableAPI()
→ Future
-
First call this method to configure all necessary dependencies to interact with Data Layer API
-
dataChanged({Uri? pathURI, UriFilterType filterType = UriFilterType.literal})
→ Stream<List<DataEvent>>
-
Listen to data change or delete events
-
deleteDataItems({required Uri uri, UriFilterType filterType = UriFilterType.literal})
→ Future<int>
-
Delete all DataItems on specific
pathURI
-
dispose()
→ void
-
override
-
findCapabilityByName(String name, {CapabilityFilterType filterType = CapabilityFilterType.all})
→ Future<CapabilityInfo?>
-
Get capability info via capability name
-
findDataItemOnURIPath({required Uri pathURI})
→ Future<DataItem?>
-
Find a specific DataItem on specific
pathURI
-
findDataItemsOnURIPath({required Uri pathURI, UriFilterType filterType = UriFilterType.literal})
→ Future<List<DataItem>>
-
Find all DataItems on specific
pathURI
-
findDeviceIdFromBluetoothAddress(String address)
→ Future<String?>
-
Call this method when you have a bluetooth address and need to find WearOsDevice id
-
getAllCapabilities({CapabilityFilterType filterType = CapabilityFilterType.all})
→ Future<Map<String, CapabilityInfo>>
-
Get all available capabilities on device network.
-
getAllDataItems()
→ Future<List<DataItem>>
-
Obtain all available DataItems on Android Wear network
-
getConnectedDevices()
→ Future<List<WearOsDevice>>
-
Get current connected devices
-
getLocalDevice()
→ Future<WearOsDevice>
-
Get current local device (your phone) information
-
isSupported()
→ Future<bool>
-
Call this method to detect if your phone supports for DataLayerAPI
override
-
messageReceived({Uri? pathURI, UriFilterType filterType = UriFilterType.literal})
→ Stream<WearOSMessage>
-
Listen to message received events
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
registerNewCapability(String name)
→ Future<void>
-
Announces that a capability has become available on the local device
-
removeCapabilityListener({String? capabilityName, Uri? capabilityPathURI})
→ Future<bool>
-
Completely remove a capability listener
-
removeDataListener({Uri? pathURI})
→ Future
-
Unlisten to data change or delete events
-
removeExistingCapability(String name)
→ Future<void>
-
Remove a capability from local device
-
removeMessageListener({Uri? pathURI})
→ Future
-
Remove message listener
-
sendMessage(Uint8List data, {required String deviceId, required String path, MessagePriority priority = MessagePriority.low})
→ Future<int>
-
Send message to specified
deviceId
-
syncData({required String path, required Map<String, dynamic> data, Map<String, File> files = const {}, bool isUrgent = false})
→ Future<DataItem?>
-
Sync data on a specific path
-
toString()
→ String
-
A string representation of this object.
inherited