isHealthConnectIntegrationEnabled static method

Future<bool> isHealthConnectIntegrationEnabled({
  1. required String connectionId,
})

Implementation

static Future<bool> isHealthConnectIntegrationEnabled({
  required String connectionId,
}) async {
  if (!Platform.isAndroid) {
    throw Exception('isHealthConnectIntegrationEnabled method is only available on Android');
  }
  final result = await _channel.invokeMethod('isHealthConnectIntegrationEnabled', {
    'connectionId': connectionId,
  });

  ExceptionHandler.checkException(result);
  return result == true;
}