Saturday, June 25, 2022
HomeiOS Developmentios - Export PDF knowledge for an ECG from well being app...

ios – Export PDF knowledge for an ECG from well being app utilizing siwft


I’ve an software which will get knowledge from well being app and however the knowledge i acquired from healthkit will not be in visible type. So is there any manner i can get the “Export to pdf” performance from well being in my app ?
I’ve added pattern code utilizing which i get knowledge.

  for pattern in ecgSamples {
            // Dealing with the samples right here.
            print("Sampel Knowledge: (pattern)")

            let voltageQuery = HKElectrocardiogramQuery(pattern) { (question, end result) in
                change(end result) {

                case .measurement(let measurement):
                    if let voltageQuantity = measurement.amount(for: .appleWatchSimilarToLeadI) {
                        // Dealing with the voltage amount right here.
                        print("Voltage Knowledge: (voltageQuantity)")

                    }

                case .accomplished:
                    print("Voltage Knowledge Full")
                    // No extra voltage measurements. End processing the prevailing measurements.

                case .error(let error):
                    print("Voltage error: (error)")                        // Deal with the error right here.

                }
            }

            // Execute the question.
            self.healthStore.execute(voltageQuery)

        }

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments