File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import HealthKit
1010
1111
1212public class ShareClientManager : CGMManager {
13+
1314
1415 public static var managerIdentifier = " DexShareClient "
1516
@@ -64,12 +65,20 @@ public class ShareClientManager: CGMManager {
6465 public var glucoseDisplay : GlucoseDisplayable ? {
6566 return latestBackfill
6667 }
68+
69+ public var cgmStatus : CGMManagerStatus {
70+ return CGMManagerStatus ( hasValidSensorSession: hasValidSensorSession)
71+ }
72+
73+ public var hasValidSensorSession : Bool {
74+ return shareService. isAuthorized
75+ }
6776
6877 public let managedDataInterval : TimeInterval ? = nil
6978
7079 public private( set) var latestBackfill : ShareGlucose ?
7180
72- public func fetchNewDataIfNeeded( _ completion: @escaping ( CGMResult ) -> Void ) {
81+ public func fetchNewDataIfNeeded( _ completion: @escaping ( CGMReadingResult ) -> Void ) {
7382 guard let shareClient = shareService. client else {
7483 completion ( . noData)
7584 return
You can’t perform that action at this time.
0 commit comments