isConnected static method

Future<bool> isConnected()

Check if currently connected to a beacon device.

Returns true if connected, false otherwise.

Implementation

static Future<bool> isConnected() async {
  final ok = await _method.invokeMethod<bool>('isConnected');
  return ok ?? false;
}