getReachability method

Future<bool> getReachability()

Check whether the WatchOS companion app is in the foreground If getReachability return true, the companion app is in the foreground, otherwise the companion app is in background or is teminated.

Implementation

Future<bool> getReachability() async {
  bool isReachable = await channel.invokeMethod("getReachability");
  return isReachable;
}