isSamsungHealthDataIntegrationEnabled static method

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

Implementation

static Future<bool> isSamsungHealthDataIntegrationEnabled({
  required String connectionId,
}) async {
  if (!Platform.isAndroid) {
    throw Exception('isSamsungHealthDataIntegrationEnabled method is only available on Android');
  }

  final result = await _channel.invokeMethod('isSamsungHealthDataIntegrationEnabled', {
    'connectionId': connectionId,
  });

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