MdsAsync class

Constructors

MdsAsync()

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 Methods

del(String uri, String contract) Future
Make a DEL request for a resource. uri must include "suunto://" prefix and device serial if needed. contract must be a json string. Returns a Future that completes with the response data in json format.
get(String uri, String contract) Future
Make an async GET request for a resource. uri must include "suunto://" prefix and device serial if needed. contract must be a json string. Returns a Future that completes with the response data in json format.
post(String uri, String contract) Future
Make a POST request for a resource. uri must include "suunto://" prefix and device serial if needed. contract must be a json string. Returns a Future that completes with the response data in json format.
put(String uri, String contract) Future
Make a PUT request for a resource. uri must include "suunto://" prefix and device serial if needed. contract must be a json string. Returns a Future that completes with the response data in json format.
startScan(void onNewDeviceFound(String?, String?)) → void
Starts scanning for Movesense devices. When a new Movesense device is found, onNewDeviceFound is called with device name and address. Android devices will get the Bluetooth MAC address of the sensor, where iOS devices will get UUID as the address parameter. Scanning is terminated automatically after 60 seconds. Only devices with Movesense services are returned.
stopScan() → void
Stops the ongoing scan.
subscribe(String uri, String contract) Stream
Make a SUBSCRIPTION request for a resource. uri must include "suunto://" prefix and device serial if needed. contract must be a json string.