enableHealthConnectIntegration static method

Future<void> enableHealthConnectIntegration({
  1. required String connectionId,
})

Implementation

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

  ExceptionHandler.checkException(result);
}